KEMBAR78
Java architecture | PPTX
JAVA ARCHITECTURE
 What is Java Architecture
 Components of Java
- Rakesh Vadnala
 Java Architecture combine the process of Compilation and Interpretation.
Compilation : A Compiler reads program in one-go and gives output if the program
is correct else an error.
Interpretation : It reads a program Line-by-Line.
 Reading every expression gives output if the program is correct.
 It gives error when it encounters the first mistake in any line of code.
ARCHITECTURE
Source Code Compiler
JAVA
VIRTUAL
MACHINE
(JVM)
Byte code
OPERATIG
SYSTEM (OS)
 Java code converted into Byte code which is done by Java Compiler.
 Byte code converted into Machine Code is done by JVM.
 The machine code which is executed directly by Machine i.e., OS.
COMPONENTS OF JAVA ARCHITECTURE
 1. JVM
 2. JRE
 3. JDK
JDK
JRE
JVM
+Development Tools
+Library Classes
 Development Tools : java, javac, jar, Javadoc
 Library classes : Packages, Classes
lang util net Etc..
Stack
System
Math
Scanner Socket
URL
Packages
Classes
JVM (JAVA VIRTUAL MACHINE)
 The JVM is a Java platform component that provides an environment
for executing Java programs.
 JVM interprets the bytecode into machine code which is executed in
the machine in which the Java program runs.
 Java Applications are called WORA (Write Once Run Anywhere).
JVM ARCHITECTURE .class
Class Loader
Method
Area
Heap Stack
Native
Stack
JVM MEMORY
Native
Interface
Native
Libraries
JIT
Compiler
Garbage
Collector
Execution Engine

Java architecture

  • 1.
    JAVA ARCHITECTURE  Whatis Java Architecture  Components of Java - Rakesh Vadnala
  • 2.
     Java Architecturecombine the process of Compilation and Interpretation. Compilation : A Compiler reads program in one-go and gives output if the program is correct else an error. Interpretation : It reads a program Line-by-Line.  Reading every expression gives output if the program is correct.  It gives error when it encounters the first mistake in any line of code.
  • 3.
    ARCHITECTURE Source Code Compiler JAVA VIRTUAL MACHINE (JVM) Bytecode OPERATIG SYSTEM (OS)  Java code converted into Byte code which is done by Java Compiler.  Byte code converted into Machine Code is done by JVM.  The machine code which is executed directly by Machine i.e., OS.
  • 4.
    COMPONENTS OF JAVAARCHITECTURE  1. JVM  2. JRE  3. JDK JDK JRE JVM +Development Tools +Library Classes
  • 5.
     Development Tools: java, javac, jar, Javadoc  Library classes : Packages, Classes lang util net Etc.. Stack System Math Scanner Socket URL Packages Classes
  • 6.
    JVM (JAVA VIRTUALMACHINE)  The JVM is a Java platform component that provides an environment for executing Java programs.  JVM interprets the bytecode into machine code which is executed in the machine in which the Java program runs.  Java Applications are called WORA (Write Once Run Anywhere).
  • 7.
    JVM ARCHITECTURE .class ClassLoader Method Area Heap Stack Native Stack JVM MEMORY Native Interface Native Libraries JIT Compiler Garbage Collector Execution Engine