Features of Java
1. Java is simple:
Java is a simple programming language. Because syntax is derived from C & C++ language. Java has removed some complex topics like Pointers, Operator Overloading, and Multiple Inheritance explicit memory allocation. Java has an Automatic Garbage Collection.
2. Java is Robust :
- Java is Robust which means Strong | Reliable
- It uses strong memory management.
- Java provides automatic garbage collection which runs on the JVM to get rid of objects that are not being used by a Java application anymore.
- There is exception handling and the type checking mechanism in Java
- It is developed in such a way that it puts a lot of effort into checking errors as early as possible, which is why the Java compiler can detect even those errors that are not easy to detect by another programming language.
3. Java is Platform Independent :
Operating System β Os is interface between Human Being and Machine. Platform is nothing but Processor + Os .
- Java has two level translation β Compilation and Interpretation.
- Java Development Kit β JDK
- Compiler is the part of jdk. Error checking mechanism is also present in jdk.
- First jdk will check the error. If in case error is present in the code compilation is not allowed. So translator need error free file for translation process.
- .Java file is converted into .classfile using JDK. It will check whole file into single run. Classfile is otherwise called Bytecode.
- This byte code or .Classfile is Platform Independent code. Because .classfile is common for all the Platform(Os).
- Java virtual machine β JVM . Jit compiler is part of JVM
- JVM is part of JRE β Java Runtime Environment.
- .Class file is converted into binary code using interpreter. It will check line by line. Binary code is otherwise known as Machine code.
- This compilation is Platform Dependent conversion.
- Jit compiler : Just in time compiler. Converting Byte code into Binary code.
Reference :
https://www.geeksforgeeks.org/java
https://www.javatpoint.com/features-of-java