DEV Community

Dev Ananth Arul
Dev Ananth Arul

Posted on

Java Architecture

Java architecture refers to the framework of components (Java Virtual Machine, Java Runtime Environment, and Java Development Kit) that enables Java programs to run on any device or platform, a concept known as "Write Once, Run Anywhere". The process involves the Java compiler converting source code into platform-independent bytecode, which the JVM then interprets and executes as machine-specific code.

Process of Java Architecture:

  1. Writing Code: Developers write Java source code in java files.

  2. **Compilation: **The Java compiler (part of the JDK) converts java files into platform-independent bytecode (saved as class files).

  3. Execution: The JVM then takes this bytecode and converts it into machine code. which the underlying operating system can execute

Top comments (0)