What are the features of Java?
Answer:
- OOP concepts:
- object-oriented;
- inheritance;
- encapsulation;
- polymorphism;
- abstract.
- Cross-platform: A Java program can be run on any platform without any modifications. The only thing you need is an installed JVM (java virtual machine).
- High performance: JIT(Just In Time compiler) enables high performance. JIT converts the bytecode to machine code and then the JVM starts execution.
- Multithreading: A thread of execution known as
Thread
. The JVM creates a thread calledmain thread
. The programmer can create multiple threads by inheriting from the Thread class or by implementing the interfaceRunnable
.