Features of Java:
- Java is a high-level, object-oriented programming language. It is known for its platform independence, reliability, and security. It follows one principle, that is "Write Once, Run Anywhere" principle.
- ## Simple:
- Java syntax is very straightforward and very easy to learn. Java removes complex features like pointers and multiple inheritance, which makes it a good choice for beginners.
- ## Object Oriented :
Java is a pure object-oriented language. It supports core OOP concepts like,
ClassObjectsInheritanceEncapsulationAbstractionPolymorphis
- ## Platform Independent :
- Java is platform-independent because of Java Virtual Machine (JVM).
- When we write Java code, it is first compiled by the compiler and then converted into bytecode (which is platform-independent).
- This byte code can run on any platform which has JVM installed.
- ## Interpreted :
- Java code is not directly executed by the computer. It is first compiled into bytecode. This byte code is then understand by the JVM. This enables Java to run on any platform without rewriting code.
5. Scalable :
- Java can handle both small and large-scale applications. Java provides features like multithreading and distributed computing that allows developers to manage loads more easily.
6.## Memory Management:
- Memory management in Java is automatically handled by the Java Virtual Machine (JVM).
- Java garbage collector reclaim memory from objects that are no longer needed.
- Memory for objects are allocated in the heap
- Method calls and local variables are stored in the stack.
Top comments (0)