What is Java?

Java is a high-level, general-purpose object-oriented programming language. It was developed by James Gosling with his team members Mike Sheridan and Patrick Naughton in 1995. It is one of the widely used programming languages.

Features of Java Language

It has the following main features:

  1. High level and general purpose: Java is a high-level and general-purpose language as it enables a programmer to write programs that are independent of a particular type of computer and are close to human languages and further from machine languages.
  2. Object-oriented: Java is also called an object-oriented language because without class and object it is impossible to write any Java program. Objects allow us to define modular entities within our program
  3. Platform-independent: Java compiler produces a unique type of code called bytecode, unlike c,c++ compiler where the compiler produces only natively executable code for a particular machine. When the Java program runs in a particular machine it is sent to a java compiler, which converts this code into an intermediate code called bytecode. This bytecode is sent to Java virtual machine (JVM) which resides in the RAM of any operating system. JVM recognizes the platform it is on and converts the bytecodes into native machine code. Hence java is called platform-independent language.