SlideShare a Scribd company logo
1 of 22
Download to read offline
JVM
JRE
JAVAC
Are the main part
for the java program
Presented by Infocampus software Training Institute
JVM
JVM is known as Java Virtual machine.It is an
interpreter .Java Virtual Machine is an abstract
machine.
It provides the runtime environment in which java
bytecode can be executed.
JVM is platform dependent so it is available for
many hardware and software.
Best core java training in bangalore
What is
JVM?
Infocampus Software Training institute
[1] JVM is a specification where
working of Java Virtual Machine is
specified.
But implementation provider is
independent to choose the algorithm.
Its implementation has been provided
by Sun and other companies.
Specification
Implementation
[2] JVM is an implementation
Its implementation is called
as JRE (Java Runtime
Environment).
Java/j2ee classes bangalore
Runtime Time Instance
[3] JVM is a Runtime Instance
Whenever we write java
command on the command
prompt to run the java class, an
instance of JVM is created.
Java course in bangalore
Working
of
JVM:
Advance java training in bangalore
The JVM performs following works :
1)Loads the java code
2)Verifies the code
3)Executes the code
4)Provides runtime environment
Architecture of JVM
1) Classloader:
It is a subsystem of JVM which is used to load the
class files.
2) Class Area(Method Area):
Class Area stores per-class structures such as the
runtime constant pool, field and method data, the
code for methods.
Java course in bangalore
[3] Execution Engine :
Execution Engine contains :
i) A virtual processor
ii) Interpreter: Read bytecode stream then execute the
instructions.
iii) Just-In-Time(JIT) compiler:
It is used to improve the performance.
JIT compiles parts of the byte code that
have similar functionality at the same time,
and hence reduces the amount of time
needed for compilation.
JRE
Java
Runtime
environment
It is used to provide runtime environment to java
program.
It is the implementation of JVM. It physically exists.
It contains set of libraries and other files
that JVM uses at runtime.
Java training center bangalore
Javac
It is the primary Java compiler included in the
JDK(Java Development Key) .
Javac is itself written in java .The compiler can
also be invoked programmatically.
Infocampus Software Training Institute
The compiler accepts source code
conforming to the Java language
specification JLS) and generates bytecode
conforming to the
Java Virtual Machine Specification
(JVMS).
Working ofJavac
- The javac command compiles Javasource code (.java file)into Javabytecodes (.class file).we then use the Java interpreter tointerprete the Java bytecodes.
Java Training in bangalore
- Java source code must be contained in files
whose filenames end with the .java extension.
The file name must be having the class name, as
classname.java, if the class is public or is
referenced from another source file.
Infocampus Software Training Institute
- For every class defined in each source file
compiled by javac compiler, the compiler stores
the resulting bytecodes in a class file with a
name of the form classname.class.
- When the compiler must refer to your own
classes you need to specify their location. Use
The classpath option or CLASSPATH
environment variable to do this.
- Class path is a sequence of directories (or zip
files) which javac searches for classes not
already defined in any of the files specified
directly as command arguments.
- The compiler looks in the class path for both a
source file and a class file, recompiling the
source (and regenerating the class file) if it is
newer.
This is the short description about
the JVM ,JRE and Javac .
To know more about the java for
developing purpose or getting a job
as java developer join Infocampus
Software Training Institute for the
java course.
Infocampus Software Training Institute
CONTACT DETAILS
#12, 1
st
& 4
th
Floor,
Outer Ring Road,
Kalamandir Road
Anand Nagar,
Marathahalli,
Bangalore,
Karnataka 560037
CONTACT INFOCAMPUS
@
9738001024
ENQUIRE AT:
http://www.infocampus.co.in/java-
training-bangalore.html
THANK
YOU

More Related Content

What's hot (20)

JAVA Program Examples
JAVA Program ExamplesJAVA Program Examples
JAVA Program Examples
 
History of java'
History of java'History of java'
History of java'
 
Java Virtual Machine - Internal Architecture
Java Virtual Machine - Internal ArchitectureJava Virtual Machine - Internal Architecture
Java Virtual Machine - Internal Architecture
 
Java compilation
Java compilationJava compilation
Java compilation
 
An Introduction to Java Compiler and Runtime
An Introduction to Java Compiler and RuntimeAn Introduction to Java Compiler and Runtime
An Introduction to Java Compiler and Runtime
 
JVM
JVMJVM
JVM
 
QSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and JitQSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and Jit
 
Advanced java-training-in-bangalore
Advanced java-training-in-bangaloreAdvanced java-training-in-bangalore
Advanced java-training-in-bangalore
 
Java ppts unit1
Java ppts unit1Java ppts unit1
Java ppts unit1
 
Java introduction with JVM architecture
Java introduction with JVM architectureJava introduction with JVM architecture
Java introduction with JVM architecture
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
 
3. jvm
3. jvm3. jvm
3. jvm
 
JVM- Java Virtual Machine
JVM- Java Virtual MachineJVM- Java Virtual Machine
JVM- Java Virtual Machine
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
 
Features of java
Features of javaFeatures of java
Features of java
 
Byte code jvm
Byte code jvmByte code jvm
Byte code jvm
 
Mpl 1
Mpl 1Mpl 1
Mpl 1
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMJava Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
 

Similar to JVM, JRE and Javac are the main part for the java program

Similar to JVM, JRE and Javac are the main part for the java program (20)

Internal working JVM
Internal working JVMInternal working JVM
Internal working JVM
 
Java JDK.docx
Java JDK.docxJava JDK.docx
Java JDK.docx
 
What is java
What is javaWhat is java
What is java
 
Advanced java training in bangalore
Advanced java training in bangaloreAdvanced java training in bangalore
Advanced java training in bangalore
 
JAVA for Every one
JAVA for Every oneJAVA for Every one
JAVA for Every one
 
About java
About javaAbout java
About java
 
Java-1st.pptx about Java technology before oops
Java-1st.pptx about Java technology before oopsJava-1st.pptx about Java technology before oops
Java-1st.pptx about Java technology before oops
 
Javanotes ww8
Javanotes ww8Javanotes ww8
Javanotes ww8
 
Java notes
Java notesJava notes
Java notes
 
Lec 3 01_aug13
Lec 3 01_aug13Lec 3 01_aug13
Lec 3 01_aug13
 
Java introduction
Java introductionJava introduction
Java introduction
 
How to run java program without IDE
How to run java program without IDEHow to run java program without IDE
How to run java program without IDE
 
Basic difference between jdk,jre,jvm in advance java course
Basic difference between jdk,jre,jvm in advance java courseBasic difference between jdk,jre,jvm in advance java course
Basic difference between jdk,jre,jvm in advance java course
 
Android Training Chandigarh
Android Training ChandigarhAndroid Training Chandigarh
Android Training Chandigarh
 
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
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
java basics.pptx
java basics.pptxjava basics.pptx
java basics.pptx
 
Programming in Java
Programming in JavaProgramming in Java
Programming in Java
 
1 introduction
1 introduction1 introduction
1 introduction
 
OOPS JAVA.pdf
OOPS JAVA.pdfOOPS JAVA.pdf
OOPS JAVA.pdf
 

Recently uploaded

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Recently uploaded (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

JVM, JRE and Javac are the main part for the java program

  • 1. JVM JRE JAVAC Are the main part for the java program Presented by Infocampus software Training Institute
  • 2. JVM JVM is known as Java Virtual machine.It is an interpreter .Java Virtual Machine is an abstract machine. It provides the runtime environment in which java bytecode can be executed. JVM is platform dependent so it is available for many hardware and software. Best core java training in bangalore
  • 3. What is JVM? Infocampus Software Training institute
  • 4. [1] JVM is a specification where working of Java Virtual Machine is specified. But implementation provider is independent to choose the algorithm. Its implementation has been provided by Sun and other companies. Specification
  • 5. Implementation [2] JVM is an implementation Its implementation is called as JRE (Java Runtime Environment). Java/j2ee classes bangalore
  • 6. Runtime Time Instance [3] JVM is a Runtime Instance Whenever we write java command on the command prompt to run the java class, an instance of JVM is created. Java course in bangalore
  • 8. The JVM performs following works : 1)Loads the java code 2)Verifies the code 3)Executes the code 4)Provides runtime environment
  • 9. Architecture of JVM 1) Classloader: It is a subsystem of JVM which is used to load the class files. 2) Class Area(Method Area): Class Area stores per-class structures such as the runtime constant pool, field and method data, the code for methods. Java course in bangalore
  • 10. [3] Execution Engine : Execution Engine contains : i) A virtual processor ii) Interpreter: Read bytecode stream then execute the instructions. iii) Just-In-Time(JIT) compiler: It is used to improve the performance. JIT compiles parts of the byte code that have similar functionality at the same time, and hence reduces the amount of time needed for compilation.
  • 12. It is used to provide runtime environment to java program. It is the implementation of JVM. It physically exists. It contains set of libraries and other files that JVM uses at runtime. Java training center bangalore
  • 13. Javac It is the primary Java compiler included in the JDK(Java Development Key) . Javac is itself written in java .The compiler can also be invoked programmatically. Infocampus Software Training Institute
  • 14. The compiler accepts source code conforming to the Java language specification JLS) and generates bytecode conforming to the Java Virtual Machine Specification (JVMS).
  • 15. Working ofJavac - The javac command compiles Javasource code (.java file)into Javabytecodes (.class file).we then use the Java interpreter tointerprete the Java bytecodes. Java Training in bangalore
  • 16. - Java source code must be contained in files whose filenames end with the .java extension. The file name must be having the class name, as classname.java, if the class is public or is referenced from another source file. Infocampus Software Training Institute
  • 17. - For every class defined in each source file compiled by javac compiler, the compiler stores the resulting bytecodes in a class file with a name of the form classname.class. - When the compiler must refer to your own classes you need to specify their location. Use The classpath option or CLASSPATH environment variable to do this.
  • 18. - Class path is a sequence of directories (or zip files) which javac searches for classes not already defined in any of the files specified directly as command arguments. - The compiler looks in the class path for both a source file and a class file, recompiling the source (and regenerating the class file) if it is newer.
  • 19. This is the short description about the JVM ,JRE and Javac . To know more about the java for developing purpose or getting a job as java developer join Infocampus Software Training Institute for the java course. Infocampus Software Training Institute
  • 20. CONTACT DETAILS #12, 1 st & 4 th Floor, Outer Ring Road, Kalamandir Road Anand Nagar, Marathahalli, Bangalore, Karnataka 560037