What are the different features of Java?

September 6, 2023 Off By Bappa

We tried to understand What is Java? We have touched upon Java features. Let’s try to understand what they really mean

  • Object Oriented – Java as a programming language, follows Object Oriented programming paradigm. Everything in Java is an object, except the primitive types. We will discuss more on this.
  • Platform Independent / Portable / Architecture Neutral – Although these are considered 3 different features, but I have found they refer to the same thing. bytecode and JVM are 2 critical terms related to Java. We will discuss more on them but needs a little bit of introduction when we are discussing these Java features
    • JVM is a platform-specific Virtual Machine capable of interpreting bytecode to machine code. Platform-specific means, we have different JVMs for different systems depending on the underlying architecture, operating system, etc
    • Unlike C and C++, irrespective of platform-specific machine code, Java generates platform-independent bytecode after compilation. This bytecode can be interpreted by any JVM in any system to fulfill Write once, run anywhere (WORA) slogan
    • With the help of bytecode and JVM, Java becomes platform-independent, portable, Architecture Neutral whatever you say
  • Secure – With the help of JVM and some other technologies, Java provides a closed environment inaccessible from outside, making code execution more secure than ever before.
  • Robust – Java code is compiled to bytecode, then bytecode is interpreted to machine code by JVM during code execution. Java provides an exhaustive error-handling mechanism during compile time as well as runtime in the form of Exception-handling

Some related topics