Top Banner
35
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Jvm
Page 2: Jvm

WELCOME

Page 3: Jvm

JVM

MIDHUN [email protected]@facebook.com twitter.com/midhunopusin.linkedin.com/pub/midhunsudhakar/86/a65/

a9b/Phonenumber

9995586182

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

CONTENTWHAT IS VIRTUALIZATIONWHAT IS JVMHOW IT WORKSCOMPARISON ON JVM,JRE,JDKDIFFERENCE BETWEEN JVM AND JIT

Page 6: Jvm

WHAT IS VIRTUALIZATION

Page 7: Jvm

WHAT IS JVM

A Java virtual machine is a virtual machine that can execute Java byte code.

Page 8: Jvm

HOW IT WORKS

Lets first look atCompile and linking process in c

Page 9: Jvm

a1.c

a2.c

a3.c

main(){

F1();F2();

}

F1(){}

F2(){}

Page 10: Jvm

a1.c

a2.c

a3.c

main(){

F1();F2();

}

F1(){}

F2(){}

Page 11: Jvm

main(){

F1();F2();

}

F1(){}

F2(){}

COMPILER

Page 12: Jvm

main(){

F1();F2();

}

F1(){}

F2(){}

COMPILER

a1.obj

a2.obj

a2.obj

Object files contain machine code

Page 13: Jvm

main(){

F1();F2();

}

F1(){}

F2(){}

COMPILER

a1.obj

a2.obj

a2.obj

LINKER aa1.exe

Page 14: Jvm

a1.exe

RAM

Page 15: Jvm

a1.exe

RAM

Page 16: Jvm

Lets look at theCompile and linking process in JAVA

Page 17: Jvm

a1.java

a2.java

a3.java

main(){

F1();F2();

}

F1(){}

F2(){}

Page 18: Jvm

main(){

F1();F2();

}

F1(){}

F2(){}

COMPILER

Page 19: Jvm

Main(){

F1();F2();

}

F1(){}

F2(){}

COMPILER

a1.class

a2.class

a2.class

.class files contain byte code

Page 20: Jvm

main(){

F1();F2();

}

F1(){}

F2(){}

COMPILER

a1.class

a2.class

a2.class

Unlike C no linking is done

Page 21: Jvm

a1.class

a2.class

a3.class

RAM

JVM

JAVA ARCHITECTURE

Page 22: Jvm

a1.class

RAM

JVM

JAVA ARCHITECTURE

a2.class

a3.class

CLASS LOADER

Page 23: Jvm

RAM

JVM

JAVA ARCHITECTURE

CLASS LOADER

a1.class

a2.class

a3.class

Page 24: Jvm

a1.class

RAM

JVM

JAVA ARCHITECTURE

a2.class

a3.class

CLASS LOADER

BYTECODE VERIFIER

Page 25: Jvm

a1.class

RAM

JVM

JIT converts BYTE CODE into machine code

a2.class

a3.class

CLASS LOADER

BYTECODE VERIFIER

EXECUTIONENGINE

JIT CODE GENERATOR

Page 26: Jvm

COMPARISON ON JVM,JRE,JDK

Page 27: Jvm

JVMJVMJVM

JREJDK

JRE

Page 28: Jvm

DIFFERENCE BETWEEN JVM,JIT

Page 29: Jvm
Page 30: Jvm

IS JAVA A COMPILED OR AN INTERPRETED?

Page 31: Jvm

JAVA is both compiled and interpreted

Page 32: Jvm

THANK YOU

Page 33: 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 34: 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 35: 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