Prof B N Kshirsagar
The Java Virtual Machine provides a
platform-independent way of executing
code, by abstracting the differences
between
operating systems and
CPU architectures.
Java Runtime Environments
are available for a wide
variety of hardware and
software combinations,
making Java a very portable
language.
The idea of virtual machines
is nothing new, but Java is
the most widely used virtual
machine used today. Thanks
to the JVM, the dream of
Write Once-Run Anywhere
(WORA) software has
become a reality.
Programmers can concentrate
on writing software, without
having to be concerned with
how or where it will run
 Java is both a compiled and an
interpreted language. Java source code
is turned into simple binary instructions,
much like ordinary microprocessor
machine code. However, whereas C or
C++ source is reduced to native
instructions for a particular model of
processor, Java source is compiled into
a universal format—instructions for
a virtual machine.
 The Java Virtual Machine (JVM) is an
abstraction layer between a Java
application and the underlying platform.
As the name implies, the JVM acts as a
“virtual” machine or processor. To the
bytecodes comprising the program, they
are communicating with a physical
machine; however, they are actually
interacting with the JVM.
Java Virtual Machine
Java Virtual Machine
JVM allows Java portability to execute within platform and hardware-
independent applications. It's a big part of the "write once, run
anywhere (WORA)" philosophy. The JVM is actually part of the Java
Runtime Environment (JRE). It is the JRE (JVM plus base classes) that
enables Java bytecode to run on any platform. Bytecodes, which are
interpreted by the JVM, simply call classes found in the JRE when they
need to perform actions they cannot do by themselves. Some actions,
like those directed to the underlying hardware or the operating system,
are performed by the JVM. Bytecodes lack functionality by themselves
and need the JVM to do many tasks for them. This perceived limitation is
actually an advantage. First, it allows Java programs to be very small
compared to other executable programs. Second, and more
importantly, it allows them to be very portable
Resource: https://www.techopedia.com/definition/3376/java-virtual-
machine-jvm
Since each JVM is tailor-made for a
specific platform, a Java program cannot
run on it unless:
(1) An appropriate JVM has been created
for it, and;
(2) That JVM has been installed on it. The
portability of Java programs are
therefore fully dependent on the
presence of a specific JVM.
Communication between
an application and
each underlying platform
can be very sophisticated, but the JVM handles it well by
providing a layer of abstraction between the two.
As such, developers do not need to be aware of the
intricacies involved for each application-platform pair.
The Java Virtual Machine forms part of a large system,
the Java Runtime Environment (JRE).
Each operating system and CPU architecture requires a
different JRE.
The JRE comprises a set of base classes, which are an
implementation of the base Java API, as well as a JVM.
Without an available JRE for a given environment, it is
impossible to run Java software.

More Related Content

PDF
Java Virtual Machine - Internal Architecture
PPT
Java-java virtual machine
PDF
Java introduction with JVM architecture
PPTX
QSpiders - Memory (JVM architecture)
PPTX
Architecture diagram of jvm
PPT
JVM- Java Virtual Machine
PDF
What's Inside a JVM?
Java Virtual Machine - Internal Architecture
Java-java virtual machine
Java introduction with JVM architecture
QSpiders - Memory (JVM architecture)
Architecture diagram of jvm
JVM- Java Virtual Machine
What's Inside a JVM?

What's hot (19)

PPTX
Java virtual machine
PDF
The Real Thing: Java Virtual Machine
PPTX
Java virtual machine
PPTX
Inside the jvm
PPTX
Java byte code presentation
PPTX
Java architecture
PPT
Java Virtual Machine
PPTX
Jvm Architecture
PPTX
QSpiders - Jdk Jvm Jre and Jit
DOCX
JDK,JRE,JVM
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
PDF
Basic difference between jdk,jre,jvm in advance java course
PPT
Byte code jvm
PDF
Advanced java-training-in-bangalore
PPTX
Jdk,jre,jvm
Java virtual machine
The Real Thing: Java Virtual Machine
Java virtual machine
Inside the jvm
Java byte code presentation
Java architecture
Java Virtual Machine
Jvm Architecture
QSpiders - Jdk Jvm Jre and Jit
JDK,JRE,JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Basic difference between jdk,jre,jvm in advance java course
Byte code jvm
Advanced java-training-in-bangalore
Jdk,jre,jvm
Ad

Viewers also liked (20)

PPTX
Career presentation
DOCX
Capital humano
PPTX
How to become a software developer
PPT
why Computer Science and It Career Job Opportunities
PDF
2015 IT Hiring and Compensation Trends
PDF
7 Awesomely Techie Jobs
PPTX
JavaServer Pages
PPTX
Python programming lab2
PPTX
Php web developer (for linkedin)
PDF
Big data
PPTX
Python programming advance lab api we pay
PPTX
Python programming lab1
PPTX
Python programming advance lab api how to
PPTX
It career paths
PPTX
Python programming lab 18
PDF
Get into game programming
PDF
2014 Denver User Group Annual Salary Survey
PPTX
Python programming advance lab api npr 2
PPTX
Python Datatypes by SujithKumar
PPTX
Regular expressions in Python
Career presentation
Capital humano
How to become a software developer
why Computer Science and It Career Job Opportunities
2015 IT Hiring and Compensation Trends
7 Awesomely Techie Jobs
JavaServer Pages
Python programming lab2
Php web developer (for linkedin)
Big data
Python programming advance lab api we pay
Python programming lab1
Python programming advance lab api how to
It career paths
Python programming lab 18
Get into game programming
2014 Denver User Group Annual Salary Survey
Python programming advance lab api npr 2
Python Datatypes by SujithKumar
Regular expressions in Python
Ad

Similar to Java Virtual Machine (20)

PPTX
Lecture java variable , data type, token
PPT
introduction to java
PDF
What is java
PPTX
java intro.pptx
PPTX
Java chapter 1 basic introduction Unit-1.pptx
PDF
What is Java
PDF
What is-java
PPTX
Object Oriented Programming Part 1 of Unit 1
PPTX
Unit1 JAVA.pptx
PPTX
Introduction to JAVA
PPTX
Introduction to java
PPTX
java basics.pptx
PPTX
Java -lec-1
DOCX
Java JDK.docx
PPTX
Introduction to java
PPS
Introduction to Java
PDF
Java course in Chandigarh.pdf
PDF
Java unit 1
PDF
Core Java-1 (1).pdf
Lecture java variable , data type, token
introduction to java
What is java
java intro.pptx
Java chapter 1 basic introduction Unit-1.pptx
What is Java
What is-java
Object Oriented Programming Part 1 of Unit 1
Unit1 JAVA.pptx
Introduction to JAVA
Introduction to java
java basics.pptx
Java -lec-1
Java JDK.docx
Introduction to java
Introduction to Java
Java course in Chandigarh.pdf
Java unit 1
Core Java-1 (1).pdf

More from profbnk (20)

PPTX
Java swing
PPTX
Big data2.0.040915
PPTX
Python programming lab 20
PPTX
Python programming lab 19
PPTX
Python programming lab 23
PPTX
Python programming21
PPTX
Python programming lab 17
PPTX
Python programming lab16
PPTX
Python programming lab15
PPTX
Python programming lab14
PPTX
Python programming lab13
PPTX
Python programming lab12
PPTX
Python programming lab 11
PPTX
Python programming lab 10
PPTX
Python programming lab 9
PPTX
Python programming lab7
PPTX
Python programming lab8
PPTX
Python programming lab 6
PPTX
Python programming lab5
PPTX
Python programming lab4 250215
Java swing
Big data2.0.040915
Python programming lab 20
Python programming lab 19
Python programming lab 23
Python programming21
Python programming lab 17
Python programming lab16
Python programming lab15
Python programming lab14
Python programming lab13
Python programming lab12
Python programming lab 11
Python programming lab 10
Python programming lab 9
Python programming lab7
Python programming lab8
Python programming lab 6
Python programming lab5
Python programming lab4 250215

Recently uploaded (20)

PPTX
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
PDF
Artificial Intelligence_ Basics .Artificial Intelligence_ Basics .
PPTX
Research Writing, Mechanical Engineering
PDF
Mechanics of materials week 2 rajeshwari
PPT
UNIT-I Machine Learning Essentials for 2nd years
PDF
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf
DOCX
An investigation of the use of recycled crumb rubber as a partial replacement...
PDF
THE PEDAGOGICAL NEXUS IN TEACHING ELECTRICITY CONCEPTS IN THE GRADE 9 NATURAL...
PDF
Using Technology to Foster Innovative Teaching Practices (www.kiu.ac.ug)
PPTX
Unit IImachinemachinetoolopeartions.pptx
DOCX
ENVIRONMENTAL PROTECTION AND MANAGEMENT (18CVL756)
PDF
IAE-V2500 Engine for Airbus Family 319/320
PDF
Software defined netwoks is useful to learn NFV and virtual Lans
PDF
B461227.pdf American Journal of Multidisciplinary Research and Review
PDF
MACCAFERRY GUIA GAVIONES TERRAPLENES EN ESPAÑOL
PDF
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
PDF
ST MNCWANGO P2 WIL (MEPR302) FINAL REPORT.pdf
PPTX
DATA STRCUTURE LABORATORY -BCSL305(PRG1)
PPTX
Design ,Art Across Digital Realities and eXtended Reality
PPTX
INTERNET OF THINGS - EMBEDDED SYSTEMS AND INTERNET OF THINGS
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
Artificial Intelligence_ Basics .Artificial Intelligence_ Basics .
Research Writing, Mechanical Engineering
Mechanics of materials week 2 rajeshwari
UNIT-I Machine Learning Essentials for 2nd years
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf
An investigation of the use of recycled crumb rubber as a partial replacement...
THE PEDAGOGICAL NEXUS IN TEACHING ELECTRICITY CONCEPTS IN THE GRADE 9 NATURAL...
Using Technology to Foster Innovative Teaching Practices (www.kiu.ac.ug)
Unit IImachinemachinetoolopeartions.pptx
ENVIRONMENTAL PROTECTION AND MANAGEMENT (18CVL756)
IAE-V2500 Engine for Airbus Family 319/320
Software defined netwoks is useful to learn NFV and virtual Lans
B461227.pdf American Journal of Multidisciplinary Research and Review
MACCAFERRY GUIA GAVIONES TERRAPLENES EN ESPAÑOL
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
ST MNCWANGO P2 WIL (MEPR302) FINAL REPORT.pdf
DATA STRCUTURE LABORATORY -BCSL305(PRG1)
Design ,Art Across Digital Realities and eXtended Reality
INTERNET OF THINGS - EMBEDDED SYSTEMS AND INTERNET OF THINGS

Java Virtual Machine

  • 1. Prof B N Kshirsagar
  • 2. The Java Virtual Machine provides a platform-independent way of executing code, by abstracting the differences between operating systems and CPU architectures.
  • 3. Java Runtime Environments are available for a wide variety of hardware and software combinations, making Java a very portable language. The idea of virtual machines is nothing new, but Java is the most widely used virtual machine used today. Thanks to the JVM, the dream of Write Once-Run Anywhere (WORA) software has become a reality. Programmers can concentrate on writing software, without having to be concerned with how or where it will run
  • 4.  Java is both a compiled and an interpreted language. Java source code is turned into simple binary instructions, much like ordinary microprocessor machine code. However, whereas C or C++ source is reduced to native instructions for a particular model of processor, Java source is compiled into a universal format—instructions for a virtual machine.
  • 5.  The Java Virtual Machine (JVM) is an abstraction layer between a Java application and the underlying platform. As the name implies, the JVM acts as a “virtual” machine or processor. To the bytecodes comprising the program, they are communicating with a physical machine; however, they are actually interacting with the JVM.
  • 8. JVM allows Java portability to execute within platform and hardware- independent applications. It's a big part of the "write once, run anywhere (WORA)" philosophy. The JVM is actually part of the Java Runtime Environment (JRE). It is the JRE (JVM plus base classes) that enables Java bytecode to run on any platform. Bytecodes, which are interpreted by the JVM, simply call classes found in the JRE when they need to perform actions they cannot do by themselves. Some actions, like those directed to the underlying hardware or the operating system, are performed by the JVM. Bytecodes lack functionality by themselves and need the JVM to do many tasks for them. This perceived limitation is actually an advantage. First, it allows Java programs to be very small compared to other executable programs. Second, and more importantly, it allows them to be very portable Resource: https://www.techopedia.com/definition/3376/java-virtual- machine-jvm
  • 9. Since each JVM is tailor-made for a specific platform, a Java program cannot run on it unless: (1) An appropriate JVM has been created for it, and; (2) That JVM has been installed on it. The portability of Java programs are therefore fully dependent on the presence of a specific JVM.
  • 10. Communication between an application and each underlying platform can be very sophisticated, but the JVM handles it well by providing a layer of abstraction between the two. As such, developers do not need to be aware of the intricacies involved for each application-platform pair.
  • 11. The Java Virtual Machine forms part of a large system, the Java Runtime Environment (JRE). Each operating system and CPU architecture requires a different JRE. The JRE comprises a set of base classes, which are an implementation of the base Java API, as well as a JVM. Without an available JRE for a given environment, it is impossible to run Java software.