SlideShare a Scribd company logo
1 of 9
ARCHITECTURE OF JAVA VIRTUAL
         MACHINE
ARCHITECTURE DIAGRAM OF JVM
INDICATING POINTS


  • 1.->
  • WHEN EXAMPLE.JAVA SOURCE FILE IS COMPILED THEN JAVA
    COMPILER CONVERT THIS JAVA SOURCE FILE TO .CLASS FILE
    WHICH IS IN BYTE CODE FORM.
  •  THIS BYTE CODE FORM OF FILE IS NOT EXECUTABLE BECAUSE FIRST
    .CLASS FILE HAS TO CONVERT IN MISSION EXECUTABLE CODE THEN
    ONLY IT IS LOADED IN MAIN MEMORY AND GET EXECUTED.
  • AS IT IS NOT IN MISSION EXECUTABLE CODE IT IS NOT DIRECTLY
    EXECUTED AT CURRENT PLATFORM.
2->
• THIS BLOCK IS INDICATING JRE OF WINDOWS THAT IS JAVA RUNTIME
  ENVIORMENT WHICH INCLUDES ALL SUPPORTING LIBRARY FILES AS WELL
  AS SOME MODULES USED TO EXECUTE PROGRAMS IN JAVA.

• MODULES SUCH AS MEMORY MANAGEMENT [MM],EXECUTION UNIT
  [EU],CLASS LOADER [CL],JUST IN TIME COMPILER [JIT],EXECEPTION
  HANDLING [EH].

• THIS DIFFERENT MODULES COMMUNICATE WITH BACKGROUND O.S TO
  PERFORM RESPECTIVE OPERATIONS.
3->
• JRE ‘S MEMORY MANAGEMENT MODULE ALLOCATES THREE SEGMENTS
  OR DIVIDE RAM IN THREE SEGMENTS 1.CLASS SEGMENT, 2.STACK
  SEGMENT,3.HEAP SEGMENT.
• ALL .CLASS FILES ARE LOADED INTO CLASS SEGMENT BY CONVERTING IT
  INTO MISSION EXECUTABLE FORM FROM BYTE CODE FORM WITH THE
  HELP OF CLASS LOADER AND JUST IN TIME COMPILER MODULES OF JRE
• STACK SEGMENT IS USED TO STORE REFERENCE VARIABLE WHICH IS USED
  TO REFER THISE OBJECTS.
• HEAP SEGMENT IS USED TO STORE OBJECT’S ATRIBUTES AND ITS
  METHODS WHICH IS REFERED BY REFERENCE VARIABLE IN STACK
  SEGMENT.
CONCEPT OF LOADING .CLASS FILES IN CLASS
                  SEGMENT
•   FIRST STEP IS CONVERTING JAVA SOURCE FILE TO .CLASS FILE AND IT IS DONE
    BY JAVA COMPILER .
•   JAVA COMPILER IS SOFTWARE PROVIDED BY SUN MICROSYSTEM WHICH
    CONVERT JAVA SOURCE FILE TO .CLASS FILE IN BYTE CODE FORM .
•   SECOND STEP IS PASSING THIS .CLASS FILE TO CLASS LOADER THEN CLASS
    LOADER SEND THIS FILE TO JIT UNIT OF JRE [JAVA RUNTIME ENVIORMENT]
•   JIT UNIT OF JRE CONVERT THIS .CLASS FILE TO MISSION EXECUTABLE CODE
    FORM WHICH CAN BE EXECUTED DIRECTLY BY OPERATING SYSTEM
•   THIS MISSION EXECUTABLE CODE FORM OF .CLASS FILE IS THEN PLACED IN
    CLASS SEGMENT OF RAM BY CLASS LOADER
•   OTHER CLASSES ARE LOAD ACCORDING TO THEIR USE IN PROGRAM .
JVM
• JVM STANDS FOR JAVA VIRTUAL MACHINE IT PLAYS MOST IMPORTANT
  ROLE IN EXECUTION OF ANY JAVA PROGRAM .
• AFTER COMPILING JAVA PROGRAM BY GIVING COMMAND >JAVAC
  EXAMPLE.JAVA WE HAVE TO EXECUTE IT BY GIVING ANOTHER COMMAND
  >JAVA EXAMPLE AND HERE COMES THE ROLE OF JVM.
• AFTER GIVING COMMAND FIRST JVM INVOKE MEMORY MANAGEMENT
  MODULE OF JRE TO ALLOCATE THREE SEGMENTS IN RAM 1.CLASS
  SEGMENT ,2.STACK SEGMENT ,3.HEAP SEGMENT BUT THIS OCCURS ONLY
  IF ENOUGH SPACE IS AVAILABLE IN RAM .
• IF SPACE IS NOT AVAILABLE IN RAM THEN PLATFORM INFORM RESPECTIVE
  RESPONSE TO MEMORY MANAGEMENT UNIT AND MEMORY
  MANAGEMENT UNIT PASSES THAT RESPONSE TO JVM AND THEN JVM
  INVOKES EXCEPTION HANDLING UNIT OF JRE WHICH DISPLAYS
  APPROPRIATE MESSAGE IS DISPLAYED ON THE SCREEN .
PLATFORM
• MANY PEOPLE USUALLY THINKS THAT PLATFORM MEANS OPERATING
  SYSTEM WHICH RUNS IN COMPUTERS BUT ACTUALLY IT MEANS MORE
  THAN THAT.
• ANY PROGRAM REQUIRE SOME CONDITION TO GET EXECUTED IT IS NOT
  ONLY DEPENDING ON O.S BUT IT IS ALSO DEPEND ON PERIFERAL DEVICE
  THAT IS HARDWARE.
• SO FOR ANY PROGRAM PLATFORM TO EXECUTE IS O.S AS WELL AS
  HARDWARE .
• HENCE PLATFORM IS COMBINATION OF O.S AND HARDWARE.
THANK YOU

More Related Content

What's hot (19)

Java introduction with JVM architecture
Java introduction with JVM architectureJava introduction with JVM architecture
Java introduction with JVM architecture
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
 
Jvm
JvmJvm
Jvm
 
3. jvm
3. jvm3. jvm
3. jvm
 
JVM
JVMJVM
JVM
 
Java Virtual Machine
Java Virtual MachineJava Virtual Machine
Java Virtual Machine
 
Advanced java-training-in-bangalore
Advanced java-training-in-bangaloreAdvanced java-training-in-bangalore
Advanced java-training-in-bangalore
 
Jit complier
Jit complierJit complier
Jit complier
 
Mule: Java Component
Mule: Java ComponentMule: Java Component
Mule: Java Component
 
Jvm Architecture
Jvm ArchitectureJvm Architecture
Jvm Architecture
 
Jvm
JvmJvm
Jvm
 
JVM
JVMJVM
JVM
 
just in time JIT compiler
just in time JIT compilerjust in time JIT compiler
just in time JIT compiler
 
parallel programming models
 parallel programming models parallel programming models
parallel programming models
 
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
 
QSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and JitQSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and Jit
 
Maven and versioning
Maven and versioningMaven and versioning
Maven and versioning
 
Abap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecksAbap slide lockenqueuedataclustersauthchecks
Abap slide lockenqueuedataclustersauthchecks
 
SAP ABAP Lock concept and enqueue
SAP ABAP Lock concept and enqueueSAP ABAP Lock concept and enqueue
SAP ABAP Lock concept and enqueue
 

Viewers also liked

New approaches in railway signaling
New approaches in railway signalingNew approaches in railway signaling
New approaches in railway signalingMurat BAYKAL
 
Block diagram representation
Block diagram representationBlock diagram representation
Block diagram representationnirali monani
 
railway presentation Ppt
railway presentation Pptrailway presentation Ppt
railway presentation PptSachin Singh
 
railway ppt for civil engg.
 railway ppt for civil engg. railway ppt for civil engg.
railway ppt for civil engg.ashrafdgrt
 

Viewers also liked (6)

Block diagram
Block diagramBlock diagram
Block diagram
 
New approaches in railway signaling
New approaches in railway signalingNew approaches in railway signaling
New approaches in railway signaling
 
Block diagram representation
Block diagram representationBlock diagram representation
Block diagram representation
 
railway presentation Ppt
railway presentation Pptrailway presentation Ppt
railway presentation Ppt
 
Indian Railways ppt.
Indian Railways ppt.Indian Railways ppt.
Indian Railways ppt.
 
railway ppt for civil engg.
 railway ppt for civil engg. railway ppt for civil engg.
railway ppt for civil engg.
 

Similar to Architecture diagram of jvm

A Brief study on JVM A Brief study on JVM
A Brief study on JVM A Brief study on JVMA Brief study on JVM A Brief study on JVM
A Brief study on JVM A Brief study on JVMBRNSSPublicationHubI
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machineNikhil Sharma
 
Java Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptxJava Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptxsonalipatil225940
 
Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)Sujit Majety
 
JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxMurugesh33
 
JAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxJAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxMurugesh33
 
Lecture 2 Java Virtual Machine .pptx
Lecture 2 Java Virtual Machine .pptxLecture 2 Java Virtual Machine .pptx
Lecture 2 Java Virtual Machine .pptxAnupamKumar559254
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introductionjyoti_lakhani
 
JAVA-History-buzzwords-JVM_architecture.pptx
JAVA-History-buzzwords-JVM_architecture.pptxJAVA-History-buzzwords-JVM_architecture.pptx
JAVA-History-buzzwords-JVM_architecture.pptx20EUEE018DEEPAKM
 
Java performance tuning
Java performance tuningJava performance tuning
Java performance tuningJerry Kurian
 
A begineers guide of JAVA - Getting Started
 A begineers guide of JAVA - Getting Started A begineers guide of JAVA - Getting Started
A begineers guide of JAVA - Getting StartedRakesh Madugula
 
1 Module 1 Introduction.pptx
1 Module 1 Introduction.pptx1 Module 1 Introduction.pptx
1 Module 1 Introduction.pptxBhargaviDalal3
 

Similar to Architecture diagram of jvm (20)

A Brief study on JVM A Brief study on JVM
A Brief study on JVM A Brief study on JVMA Brief study on JVM A Brief study on JVM
A Brief study on JVM A Brief study on JVM
 
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptxJAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
 
Java Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptxJava Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptx
 
Introduction to java (revised)
Introduction to java (revised)Introduction to java (revised)
Introduction to java (revised)
 
JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
 
JAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxJAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptx
 
Presentation on java
Presentation  on  javaPresentation  on  java
Presentation on java
 
Java JVM
Java JVMJava JVM
Java JVM
 
Lecture 2 Java Virtual Machine .pptx
Lecture 2 Java Virtual Machine .pptxLecture 2 Java Virtual Machine .pptx
Lecture 2 Java Virtual Machine .pptx
 
Jvm internal detail
Jvm internal detailJvm internal detail
Jvm internal detail
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
 
Java By Sai NagaVenkata BuchiBabu Manepalli
Java By Sai NagaVenkata BuchiBabu ManepalliJava By Sai NagaVenkata BuchiBabu Manepalli
Java By Sai NagaVenkata BuchiBabu Manepalli
 
Java By Sai NagaVenkata BuchiBabu Manepalli
Java By Sai NagaVenkata BuchiBabu ManepalliJava By Sai NagaVenkata BuchiBabu Manepalli
Java By Sai NagaVenkata BuchiBabu Manepalli
 
JAVA-History-buzzwords-JVM_architecture.pptx
JAVA-History-buzzwords-JVM_architecture.pptxJAVA-History-buzzwords-JVM_architecture.pptx
JAVA-History-buzzwords-JVM_architecture.pptx
 
Java introduction
Java introductionJava introduction
Java introduction
 
Java performance tuning
Java performance tuningJava performance tuning
Java performance tuning
 
Java introduction
Java introductionJava introduction
Java introduction
 
A begineers guide of JAVA - Getting Started
 A begineers guide of JAVA - Getting Started A begineers guide of JAVA - Getting Started
A begineers guide of JAVA - Getting Started
 
1 Module 1 Introduction.pptx
1 Module 1 Introduction.pptx1 Module 1 Introduction.pptx
1 Module 1 Introduction.pptx
 

Recently uploaded

Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxAneriPatwari
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptxAneriPatwari
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 

Recently uploaded (20)

INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptx
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
ARTERIAL BLOOD GAS ANALYSIS........pptx
ARTERIAL BLOOD  GAS ANALYSIS........pptxARTERIAL BLOOD  GAS ANALYSIS........pptx
ARTERIAL BLOOD GAS ANALYSIS........pptx
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 

Architecture diagram of jvm

  • 1. ARCHITECTURE OF JAVA VIRTUAL MACHINE
  • 3. INDICATING POINTS • 1.-> • WHEN EXAMPLE.JAVA SOURCE FILE IS COMPILED THEN JAVA COMPILER CONVERT THIS JAVA SOURCE FILE TO .CLASS FILE WHICH IS IN BYTE CODE FORM. • THIS BYTE CODE FORM OF FILE IS NOT EXECUTABLE BECAUSE FIRST .CLASS FILE HAS TO CONVERT IN MISSION EXECUTABLE CODE THEN ONLY IT IS LOADED IN MAIN MEMORY AND GET EXECUTED. • AS IT IS NOT IN MISSION EXECUTABLE CODE IT IS NOT DIRECTLY EXECUTED AT CURRENT PLATFORM.
  • 4. 2-> • THIS BLOCK IS INDICATING JRE OF WINDOWS THAT IS JAVA RUNTIME ENVIORMENT WHICH INCLUDES ALL SUPPORTING LIBRARY FILES AS WELL AS SOME MODULES USED TO EXECUTE PROGRAMS IN JAVA. • MODULES SUCH AS MEMORY MANAGEMENT [MM],EXECUTION UNIT [EU],CLASS LOADER [CL],JUST IN TIME COMPILER [JIT],EXECEPTION HANDLING [EH]. • THIS DIFFERENT MODULES COMMUNICATE WITH BACKGROUND O.S TO PERFORM RESPECTIVE OPERATIONS.
  • 5. 3-> • JRE ‘S MEMORY MANAGEMENT MODULE ALLOCATES THREE SEGMENTS OR DIVIDE RAM IN THREE SEGMENTS 1.CLASS SEGMENT, 2.STACK SEGMENT,3.HEAP SEGMENT. • ALL .CLASS FILES ARE LOADED INTO CLASS SEGMENT BY CONVERTING IT INTO MISSION EXECUTABLE FORM FROM BYTE CODE FORM WITH THE HELP OF CLASS LOADER AND JUST IN TIME COMPILER MODULES OF JRE • STACK SEGMENT IS USED TO STORE REFERENCE VARIABLE WHICH IS USED TO REFER THISE OBJECTS. • HEAP SEGMENT IS USED TO STORE OBJECT’S ATRIBUTES AND ITS METHODS WHICH IS REFERED BY REFERENCE VARIABLE IN STACK SEGMENT.
  • 6. CONCEPT OF LOADING .CLASS FILES IN CLASS SEGMENT • FIRST STEP IS CONVERTING JAVA SOURCE FILE TO .CLASS FILE AND IT IS DONE BY JAVA COMPILER . • JAVA COMPILER IS SOFTWARE PROVIDED BY SUN MICROSYSTEM WHICH CONVERT JAVA SOURCE FILE TO .CLASS FILE IN BYTE CODE FORM . • SECOND STEP IS PASSING THIS .CLASS FILE TO CLASS LOADER THEN CLASS LOADER SEND THIS FILE TO JIT UNIT OF JRE [JAVA RUNTIME ENVIORMENT] • JIT UNIT OF JRE CONVERT THIS .CLASS FILE TO MISSION EXECUTABLE CODE FORM WHICH CAN BE EXECUTED DIRECTLY BY OPERATING SYSTEM • THIS MISSION EXECUTABLE CODE FORM OF .CLASS FILE IS THEN PLACED IN CLASS SEGMENT OF RAM BY CLASS LOADER • OTHER CLASSES ARE LOAD ACCORDING TO THEIR USE IN PROGRAM .
  • 7. JVM • JVM STANDS FOR JAVA VIRTUAL MACHINE IT PLAYS MOST IMPORTANT ROLE IN EXECUTION OF ANY JAVA PROGRAM . • AFTER COMPILING JAVA PROGRAM BY GIVING COMMAND >JAVAC EXAMPLE.JAVA WE HAVE TO EXECUTE IT BY GIVING ANOTHER COMMAND >JAVA EXAMPLE AND HERE COMES THE ROLE OF JVM. • AFTER GIVING COMMAND FIRST JVM INVOKE MEMORY MANAGEMENT MODULE OF JRE TO ALLOCATE THREE SEGMENTS IN RAM 1.CLASS SEGMENT ,2.STACK SEGMENT ,3.HEAP SEGMENT BUT THIS OCCURS ONLY IF ENOUGH SPACE IS AVAILABLE IN RAM . • IF SPACE IS NOT AVAILABLE IN RAM THEN PLATFORM INFORM RESPECTIVE RESPONSE TO MEMORY MANAGEMENT UNIT AND MEMORY MANAGEMENT UNIT PASSES THAT RESPONSE TO JVM AND THEN JVM INVOKES EXCEPTION HANDLING UNIT OF JRE WHICH DISPLAYS APPROPRIATE MESSAGE IS DISPLAYED ON THE SCREEN .
  • 8. PLATFORM • MANY PEOPLE USUALLY THINKS THAT PLATFORM MEANS OPERATING SYSTEM WHICH RUNS IN COMPUTERS BUT ACTUALLY IT MEANS MORE THAN THAT. • ANY PROGRAM REQUIRE SOME CONDITION TO GET EXECUTED IT IS NOT ONLY DEPENDING ON O.S BUT IT IS ALSO DEPEND ON PERIFERAL DEVICE THAT IS HARDWARE. • SO FOR ANY PROGRAM PLATFORM TO EXECUTE IS O.S AS WELL AS HARDWARE . • HENCE PLATFORM IS COMBINATION OF O.S AND HARDWARE.

Editor's Notes

  1. IT IS BYTE CODE FORM NOT MISSION EXECUTABLE CODE BECAUSE