+ All Categories

Jvm

Date post: 05-Dec-2014
Category:
Upload: baabtracom-mentoring-partner-first-programming-school-in-india
View: 187 times
Download: 3 times
Share this document with a friend
Description:
 
13
Transcript
Page 1: Jvm
Page 2: Jvm

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

Page 3: Jvm

Week Target Achieved

1 30 21

2 30 22

3

Typing Speed

Page 4: Jvm

[email protected]/twitter.com/sin.linkedin.com/in/ 9745709377

JVM

Page 5: Jvm

Java Virtual Machine

JVM is an execution engine that runs compiled Java byte code

Page 6: Jvm

JAVA IS DISTRIBUTED INTO TWO PACKAGES

Page 7: Jvm

• 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.

Page 8: Jvm

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

Page 9: Jvm

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.

Page 10: Jvm

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

Page 11: Jvm

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

Page 12: Jvm

END

Page 13: Jvm

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