jvm

22

Upload: baabtracom-first-coding-school-in-india

Post on 20-May-2015

270 views

Category:

Technology


1 download

DESCRIPTION

Jvm

TRANSCRIPT

Page 1: Jvm
Page 2: Jvm

Razi [email protected]/

RaziKallayitwitter.com/RaziKallayiin.linkedin.com/in/RaziKallayi9746730324

JVM

Page 3: 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 4: Jvm

Java Virtual machine (JVM)

• A process virtual machine that can execute Java bytecode.

• *.java files are compiled to obtain *.class files that contain the bytecodes understandable by the JVM.

• JVM interprets the bytecodes during execution of Java program.

Page 5: Jvm

• Byte code is the entity that allows Java to be a "portable language" (write once, run anywhere).

• Indeed there are specific implementations of the JVM for different systems (Windows, Linux, MacOS).

• The aim is that with the same bytecodes they all give the same results.

• JVM is platform dependent • Java is platform independent

Page 6: Jvm

JVM

Implementation of JVM

Page 7: Jvm

Just In Time(JIT)• JIT are advanced part of Java Virtual machine

• It optimize byte code to machine instruction conversion by compiling similar byte codes at same time

• thus reducing overall execution time.

• JIT performs several optimizations such as in-lining function.

• JIT compiler improve perfomance

Page 8: Jvm

Different JVM layers and interaction

Page 9: Jvm

Java Runtime Environment (JRE)

• Provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language.

• The JRE does not contain tools and utilities such as compilers or debuggers for developing applets and applications.

Page 10: Jvm

Java Development Kit (JDK)

• Most used by developers to develop java based applications.

• The JDK is a superset of the JRE, and contains everything that is in the JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications.

Page 11: Jvm
Page 12: Jvm

IsJavaCompiled or interpretedprogramming language?

Page 13: Jvm

Java is both compiled and interpreted language.

Java compiles using javac and JIT, and interprets using Java virtual machine.

Page 14: Jvm

Java

from writingto execution:

Page 15: Jvm

Programmer write source code and store that into a .java file.

Note: Name of your Java source file must be same with the public class declared inside that file, for example if there is public class called Order inside Java file, then it name must be Order.java

1

Page 16: Jvm

javac compiles .java fie and creates class files, which contains byte code.

2

Page 17: Jvm

JVM executes these class files and gathers statistics of execution run.

These statics are used to determine hot spot i.e. part of your code which executes 90% of time.

3

Page 18: Jvm

When JVM has enough data to make decision,

JIT compiles frequently used byte codes into native code, which is then directly executed by platform.

This is how JIT provides performance boost to Java application.

4

Page 19: Jvm

thankyou

RAZI KALLAYI

Page 20: Jvm

Want to learn more about programming or Looking to become a good programmer?

Are you wasting time on searching so many contents online?

Do you want to learn things quickly?

Tired of spending huge amount of money to become a Software professional?

Do an online course @ baabtra.com

We put industry standards to practice. Our structured, activity based courses are so designed to make a quick, good software professional out of anybody who holds a passion for coding.

Page 21: Jvm

Follow us @ twitter.com/baabtra

Like us @ facebook.com/baabtra

Subscribe to us @ youtube.com/baabtra

Become a follower @ slideshare.net/BaabtraMentoringPartner

Connect to us @ in.linkedin.com/in/baabtra

Give a feedback @ massbaab.com/baabtra

Thanks in advance

www.baabtra.com | www.massbaab.com |www.baabte.com

Page 22: Jvm

Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

Cafit Square,Hilite Business Park,Near Pantheerankavu,Kozhikode

Start up VillageEranakulam,Kerala, India.Email: [email protected]

Contact Us