View
187
Download
3
Category
Preview:
DESCRIPTION
Citation preview
Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
Week Target Achieved
1 30 21
2 30 22
3
Typing Speed
SANILA.Psanila222@gmail.comwww.facebook.com/twitter.com/sin.linkedin.com/in/ 9745709377
JVM
Java Virtual Machine
JVM is an execution engine that runs compiled Java byte code
JAVA IS DISTRIBUTED INTO TWO PACKAGES
• JDK is a set of tools for developing Java applications.
• Java Run-time Environment helps in running the programs.
• JVM interprets Java programs and allows them to run on any platform
• JIT is a module,which helps in compiling certain parts of byte code into the machine code for higher performance.
8
How does JVM work?• A Java program is written
• The program is compiled
• A class file is produced containing bytecodes
• The bytecodes are interpreted by the JVM
• The JVM translates bytecodes into native machine code
Compiler
Java Virtual Machine
Native Machine Code
public class HelloWorld {
public static void main(String args[ ]) {
System.out.println(“Hello World!”);
}
}
Source Code
Class File
Bytecodes
When JRE is installed it contains JVM and JIT and the class libraries When JDK is installed it also contains the
JRE, JVM and JIT apart from the compiler, debugging tools.
comparison between jvm ,jre and jdk
1) JRE and JDK come as installer while JVM are bundled with them.
2) JRE only contain environment to execute java program but doesn’t contain other tool for compiling java program.
3) JVM comes along with both JDK and JRE and created when you execute Java program by giving “java” command
Just In Time Compiler
JIT is a module inside the JVM which helps in compiling certain parts of byte code into themachine code for higher performance. Note that only certain parts of byte code will be compiled to the machine code, the other parts are usually interpreted and executed
END
If this presentation helped you, please visit our page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
Recommended