- Robust & Secure
- Platform independent
- High performance
Before Java, "C" is the most powerful language. If you have worked with C, you may feel it is complex than Java, and also it is not an Object-Oriented programming language. C is a Structured oriented language. When Java is invented, is it very easy to understand. Because Java is less complex than C and other languages and it is easy to learn.
Java is a highly strong programming language. Why I'm saying Java is Robust? Really Java provides both compile-time and run-time error checking mechanisms. It means there are two error checking gates to ensure your code is correct.
If you have any idea about C language, you may know, C is widely using pointers. But Java doesn't use pointers, it has References. Java is using a new keyword to make object. That new returns a reference, not a pointer.
The platform is a hardware and software combination to run a program. For example Windows, Linux, macOS. But Java is a software-only platform, it means Java can be run in any hardware.
- JVM (Java Virtual Machine)
- Java API (Application Programming Interface)
Java is really built for high-performance application creation. Java is running on a virtual machine(JVM). You may feel it makes slow execution than native code. But Java's high-performance Virtual Machine and compiler gives the same performance as a native.
- JVM - Sun JVM is written in C
- Java compiler - Earlier C and C++, now Java
- JRE - Written in C
- Java libraries - Written in Java