SlideShare a Scribd company logo
The Java Virtual Machine
 Taha Malampatti - 140050107052By:-
 A software emulation of a hypothetical computing
machine that runs Java bytecodes.
(Java compiler output)
 ISV’s can license the JVM from Sun Microsystems
 To have a JVM licensed Sun must approve the
implementation
 Rigid test procedure with published suite of test code.
 Core classes must not be modified
◦ this was the root of the Sun/Microsoft Lawsuit
 Separate versions for command line and browser
environments
 Many restrictions on browser version to ensure the
Java security model and robustness of the JVM.
Byte
Code
Verifier
Class
Loader
Interpreter
Just-in-time
Compiler
Java
Runtime
Hardware
 Target Hardware - all CISC and RISC
 Machine type - stack (similar to Forth VM)
 A number of companies have promised a Java chip but
haven’t delivered…yet
Java Virtual Machine
 As threads are created each thread get a Java Stack
and a pc.
 Creates a stack frame for each method of a class
◦ Local Variables
◦ Execution Environment
◦ Operand Stack
 Array of 32 bit variables
◦ Types longer than 32 bit (double) use consecutive cells
◦ Loaded onto and stored from operand stack
 32 bit FIFO
 holds the arguments for the opcodes
 a subsection of the Java Stack
◦ primary area for current status of bytecode execution
 Memory from which class instances are allocated
 Interpreter monitors memory usage and reclaims
memory when no longer in use.
 Garbage collection is automatic (unlike C/C++).
System.gc()
 Method Area - bytecodes for all Java Methods
 Constant Pool - class names, method and field names,
string constants
 4 Gb internal addressing due to 32 bit wide stack
implementation
 Methods are limited to 32 Kb due to 16 bit offset
addressing used for branching
 256 local variables /stack (8 bit field)
 32k constant pool entries per method
 Unix (many)
 Windows/NT/95/95/2000/XP
 OS/2
 Linux
 VM/CMS (1Q98)
 MVS / S390 (1Q98)

More Related Content

What's hot (20)

PPT
JVM- Java Virtual Machine
Manasvi Mehta
 
PPTX
Jvm Architecture
ThirupathiReddy Vajjala
 
PDF
What's Inside a JVM?
Azul Systems Inc.
 
PDF
The Real Thing: Java Virtual Machine
Frontech
 
PPTX
Java Virtual Machine
profbnk
 
PPTX
Java architecture
Rakesh
 
PPTX
Java byte code presentation
Mahnoor Hashmi
 
PPTX
Inside the jvm
Benjamin Kim
 
DOCX
JDK,JRE,JVM
Cognizant
 
PPTX
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
Rhythm Suiwal
 
PPTX
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
PPTX
JAVA BYTE CODE
Javed Ahmed Samo
 
PDF
Java introduction with JVM architecture
atozknowledge .com
 
PDF
Basic difference between jdk,jre,jvm in advance java course
Preeti Agarwal
 
PDF
What is-java
Shahid Rasheed
 
PPTX
Jdk,jre,jvm
Kritika Goel
 
PPTX
Java JVM
KadarkaraiSelvam
 
JVM- Java Virtual Machine
Manasvi Mehta
 
Jvm Architecture
ThirupathiReddy Vajjala
 
What's Inside a JVM?
Azul Systems Inc.
 
The Real Thing: Java Virtual Machine
Frontech
 
Java Virtual Machine
profbnk
 
Java architecture
Rakesh
 
Java byte code presentation
Mahnoor Hashmi
 
Inside the jvm
Benjamin Kim
 
JDK,JRE,JVM
Cognizant
 
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
Rhythm Suiwal
 
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
JAVA BYTE CODE
Javed Ahmed Samo
 
Java introduction with JVM architecture
atozknowledge .com
 
Basic difference between jdk,jre,jvm in advance java course
Preeti Agarwal
 
What is-java
Shahid Rasheed
 
Jdk,jre,jvm
Kritika Goel
 

Viewers also liked (18)

PPTX
An application of 8085 register interfacing with LCD
Taha Malampatti
 
PDF
impugnação CRECI 2
Márcio Ely
 
PPT
Mobile Address Book
deepakmca12
 
PDF
yourprezi
John Frazier
 
PDF
Anne Hopf reference letter for CChew
Chrystalla Chew
 
PPTX
Pdm
e0801109
 
DOCX
Протокол №1
Rebbit2015
 
PDF
Battery Lifetime-Aware Base Station Sleeping Control with M2M/H2H Coexistence
amin azari
 
PPT
short_st-robot-yatirimlari-2016-kasim
Emre YILDIZ
 
PPTX
What about climate change and save the Planet?
Andriy Kabanets
 
DOC
Структура
cultureua
 
PPTX
An application of 8085 register interfacing with LED
Taha Malampatti
 
DOCX
додаток 32017
Rebbit2015
 
PDF
Cómo reducir desperdicio alimentario
Maruja Ruiz
 
PPTX
Task 3.1
Tom Dix
 
PPTX
PLC and SCADA
Suman Sourabh
 
PPTX
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
Subash Sambath Kumar
 
An application of 8085 register interfacing with LCD
Taha Malampatti
 
impugnação CRECI 2
Márcio Ely
 
Mobile Address Book
deepakmca12
 
yourprezi
John Frazier
 
Anne Hopf reference letter for CChew
Chrystalla Chew
 
Протокол №1
Rebbit2015
 
Battery Lifetime-Aware Base Station Sleeping Control with M2M/H2H Coexistence
amin azari
 
short_st-robot-yatirimlari-2016-kasim
Emre YILDIZ
 
What about climate change and save the Planet?
Andriy Kabanets
 
Структура
cultureua
 
An application of 8085 register interfacing with LED
Taha Malampatti
 
додаток 32017
Rebbit2015
 
Cómo reducir desperdicio alimentario
Maruja Ruiz
 
Task 3.1
Tom Dix
 
PLC and SCADA
Suman Sourabh
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
Subash Sambath Kumar
 
Ad

Similar to Java Virtual Machine (20)

PPTX
Java byte code & virtual machine
Laxman Puri
 
PDF
A Brief study on JVM A Brief study on JVM
BRNSSPublicationHubI
 
PPT
Object Oriented Programming-JAVA
Home
 
PDF
Core Java Programming Language (JSE) : Chapter I - Getting Started
WebStackAcademy
 
PPT
introduction to java
Azaz Maverick
 
PDF
Java unit 1
Shipra Swati
 
PPTX
History of java'
deepthisujithra
 
PPTX
UNIT 1.pptx
EduclentMegasoftel
 
PPT
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
PPTX
What is Java? Presentation On Introduction To Core Java By PSK Technologies
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
PPTX
A tour of Java and the JVM
Alex Birch
 
PPT
1- java
Krishna Sujeer
 
PPT
java concepts
Surya Prakash
 
PDF
Java Runtime: повседневные обязанности JVM
odnoklassniki.ru
 
PPTX
Java Class1
Mayank Aggarwal
 
PDF
Introduction to the Java bytecode - So@t - 20130924
yohanbeschi
 
PPTX
Java introduction
The icfai university jaipur
 
Java byte code & virtual machine
Laxman Puri
 
A Brief study on JVM A Brief study on JVM
BRNSSPublicationHubI
 
Object Oriented Programming-JAVA
Home
 
Core Java Programming Language (JSE) : Chapter I - Getting Started
WebStackAcademy
 
introduction to java
Azaz Maverick
 
Java unit 1
Shipra Swati
 
History of java'
deepthisujithra
 
UNIT 1.pptx
EduclentMegasoftel
 
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
What is Java? Presentation On Introduction To Core Java By PSK Technologies
PSK Technolgies Pvt. Ltd. IT Company Nagpur
 
A tour of Java and the JVM
Alex Birch
 
java concepts
Surya Prakash
 
Java Runtime: повседневные обязанности JVM
odnoklassniki.ru
 
Java Class1
Mayank Aggarwal
 
Introduction to the Java bytecode - So@t - 20130924
yohanbeschi
 
Java introduction
The icfai university jaipur
 
Ad

More from Taha Malampatti (15)

PPTX
Lex & yacc
Taha Malampatti
 
PPTX
Cultural heritage tourism
Taha Malampatti
 
PPTX
Request dispacther interface ppt
Taha Malampatti
 
PPTX
Introduction to Android ppt
Taha Malampatti
 
PPT
Intodcution to Html
Taha Malampatti
 
PPTX
Introduction to php
Taha Malampatti
 
PPTX
Database Connectivity in PHP
Taha Malampatti
 
PPTX
Cox and Kings Pvt Industrial Training
Taha Malampatti
 
PPT
Steganography ppt
Taha Malampatti
 
PPTX
The sunsparc architecture
Taha Malampatti
 
PDF
Orthogonal Projection
Taha Malampatti
 
PPTX
Apple inc
Taha Malampatti
 
PPT
Blood donation
Taha Malampatti
 
PPTX
Compressors and its applications
Taha Malampatti
 
PPTX
Laws Of Gravitation
Taha Malampatti
 
Lex & yacc
Taha Malampatti
 
Cultural heritage tourism
Taha Malampatti
 
Request dispacther interface ppt
Taha Malampatti
 
Introduction to Android ppt
Taha Malampatti
 
Intodcution to Html
Taha Malampatti
 
Introduction to php
Taha Malampatti
 
Database Connectivity in PHP
Taha Malampatti
 
Cox and Kings Pvt Industrial Training
Taha Malampatti
 
Steganography ppt
Taha Malampatti
 
The sunsparc architecture
Taha Malampatti
 
Orthogonal Projection
Taha Malampatti
 
Apple inc
Taha Malampatti
 
Blood donation
Taha Malampatti
 
Compressors and its applications
Taha Malampatti
 
Laws Of Gravitation
Taha Malampatti
 

Recently uploaded (20)

PPTX
ERP - FICO Presentation BY BSL BOKARO STEEL LIMITED.pptx
ravisranjan
 
PDF
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
PPTX
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
PDF
Dealing with JSON in the relational world
Andres Almiray
 
PPTX
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
PDF
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
 
PDF
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
 
PPTX
How Can Recruitment Management Software Improve Hiring Efficiency?
HireME
 
PDF
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
PDF
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
 
PPTX
IObit Driver Booster Pro 12.4-12.5 license keys 2025-2026
chaudhryakashoo065
 
PDF
Difference Between Kubernetes and Docker .pdf
Kindlebit Solutions
 
PDF
Power BI vs Tableau vs Looker - Which BI Tool is Right for You?
MagnusMinds IT Solution LLP
 
PDF
Designing Accessible Content Blocks (1).pdf
jaclynmennie1
 
PPTX
IObit Driver Booster Pro Crack Download Latest Version
chaudhryakashoo065
 
PPTX
Automatic_Iperf_Log_Result_Excel_visual_v2.pptx
Chen-Chih Lee
 
PPTX
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
 
PDF
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
 
PDF
From Chaos to Clarity: Mastering Analytics Governance in the Modern Enterprise
Wiiisdom
 
PPTX
computer forensics encase emager app exp6 1.pptx
ssuser343e92
 
ERP - FICO Presentation BY BSL BOKARO STEEL LIMITED.pptx
ravisranjan
 
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
Dealing with JSON in the relational world
Andres Almiray
 
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
 
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
 
How Can Recruitment Management Software Improve Hiring Efficiency?
HireME
 
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
 
IObit Driver Booster Pro 12.4-12.5 license keys 2025-2026
chaudhryakashoo065
 
Difference Between Kubernetes and Docker .pdf
Kindlebit Solutions
 
Power BI vs Tableau vs Looker - Which BI Tool is Right for You?
MagnusMinds IT Solution LLP
 
Designing Accessible Content Blocks (1).pdf
jaclynmennie1
 
IObit Driver Booster Pro Crack Download Latest Version
chaudhryakashoo065
 
Automatic_Iperf_Log_Result_Excel_visual_v2.pptx
Chen-Chih Lee
 
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
 
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
 
From Chaos to Clarity: Mastering Analytics Governance in the Modern Enterprise
Wiiisdom
 
computer forensics encase emager app exp6 1.pptx
ssuser343e92
 

Java Virtual Machine

  • 2.  Taha Malampatti - 140050107052By:-
  • 3.  A software emulation of a hypothetical computing machine that runs Java bytecodes. (Java compiler output)  ISV’s can license the JVM from Sun Microsystems
  • 4.  To have a JVM licensed Sun must approve the implementation  Rigid test procedure with published suite of test code.  Core classes must not be modified ◦ this was the root of the Sun/Microsoft Lawsuit
  • 5.  Separate versions for command line and browser environments  Many restrictions on browser version to ensure the Java security model and robustness of the JVM.
  • 7.  Target Hardware - all CISC and RISC  Machine type - stack (similar to Forth VM)  A number of companies have promised a Java chip but haven’t delivered…yet
  • 9.  As threads are created each thread get a Java Stack and a pc.  Creates a stack frame for each method of a class ◦ Local Variables ◦ Execution Environment ◦ Operand Stack
  • 10.  Array of 32 bit variables ◦ Types longer than 32 bit (double) use consecutive cells ◦ Loaded onto and stored from operand stack
  • 11.  32 bit FIFO  holds the arguments for the opcodes  a subsection of the Java Stack ◦ primary area for current status of bytecode execution
  • 12.  Memory from which class instances are allocated  Interpreter monitors memory usage and reclaims memory when no longer in use.  Garbage collection is automatic (unlike C/C++). System.gc()
  • 13.  Method Area - bytecodes for all Java Methods  Constant Pool - class names, method and field names, string constants
  • 14.  4 Gb internal addressing due to 32 bit wide stack implementation  Methods are limited to 32 Kb due to 16 bit offset addressing used for branching  256 local variables /stack (8 bit field)  32k constant pool entries per method
  • 15.  Unix (many)  Windows/NT/95/95/2000/XP  OS/2  Linux  VM/CMS (1Q98)  MVS / S390 (1Q98)