Published by: sadikshya
Published date: 16 Jun 2021
Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers “write once, run anywhere” (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.
For example:-
you can write and compile a Java program on UNIX and run it on Microsoft Windows, Macintosh, or UNIX machine without any modifications to the source code. WORA is achieved by compiling a Java program into an intermediate language called bytecode. The format of the bytecode is platform-independent. A virtual machine, called the Java Virtual Machine (JVM), is used to run the bytecode on each platform.
The Oracle implementation is packaged into two different distributions:
1. Java Runtime Environment (JRE) contains the parts of the Java SE platform required to run Java programs and is intended for end-users.
2. Java Development Kit (JDK) is intended for software developers and includes development tools such as the Java compiler, Javadoc, Jar, and a debugger.