In the last post we saw that Java is the most popular programming language.
Java is an Object Oriented Programming language that was created by Sun Microsystems in 1995. Since then, it became very popular between programmers…
What makes Java being the favourite programming language? Why is Java so widely used?
The main reasons are:
- Is Free. Java is Open Source so users do not have to pay heavy licence fees every year.
- WORA - “Write Once Run Anywhere“. That means that Java is platform independent. Java applications need only to be compiled once and run on JVM (Java Virtual Machine), so Java applications aren’t developed exclusively for a specific Operative System, since there are different JVM, which are compatible with several platforms, such as Linux, Windows, or Mac. The JVM is written in C/C++ and is responsible for the Java bytecode (.class files) interpretation. The .class files are generated after the compilation of .java files. To run a program, the JVM loads and executes its bytecode instructions.
- Is Object Oriented which provides different advantages. It’s simple to use since OOP programs have a clear structure, which helps its easy maintainability; The same code can be reused in different programs; Scalability.
- Garbage Collector – This feature provides automatic memory management. With garbage collector there is no need to free up memory manually.
- Java has different editions such as J2SE (standard edition), J2EE (enterprise edition), J2ME (micro/mobile edition). This makes Java applications ideal for various environments such as mobile devices, and the Internet.
- Secure – The Java language, compiler, interpreter, and runtime environment were each developed with security in mind.
- Reliable – Java compilers are able to detect many problems that would first show up during execution time in other languages