What is Java ?

Java is a platform-independent and object oriented programming language.

  • Object Oriented Programming Language: As Structured programming languages like C failed to manage the complex application's code due to lack of organizing the code capability, as a result object oriented programming (OOP) was invented. OOP is a programming methodology that helps organize complex programs through the use of inheritance, encapsulation and polymorphism methodologies. 
  • Platform-Independent Programming Language:  The output of a Java compiler is not executable code rather its a bytecode. Bytecode is a highly optimized set of instructions designed to be executed by Java run-time system, which is called the Java Virtual Machine (JVM). Translating a Java program into bytecode makes it much easier to run a program in a wide variety of environments because only the JVM needs to be implemented/designed for each platform. So the use of byte code as an intermediate language permits Java to run on any platform.