jvm
DESCRIPTION
JvmTRANSCRIPT
![Page 1: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/1.jpg)
![Page 2: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/2.jpg)
Razi [email protected]/
RaziKallayitwitter.com/RaziKallayiin.linkedin.com/in/RaziKallayi9746730324
JVM
![Page 3: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/3.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/5.jpg)
• 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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/6.jpg)
JVM
Implementation of JVM
![Page 7: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/7.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/8.jpg)
Different JVM layers and interaction
![Page 9: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/10.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/11.jpg)
![Page 12: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/12.jpg)
IsJavaCompiled or interpretedprogramming language?
![Page 13: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/13.jpg)
Java is both compiled and interpreted language.
Java compiles using javac and JIT, and interprets using Java virtual machine.
![Page 14: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/14.jpg)
Java
from writingto execution:
![Page 15: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/15.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/16.jpg)
javac compiles .java fie and creates class files, which contains byte code.
2
![Page 17: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/17.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/18.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/19.jpg)
thankyou
RAZI KALLAYI
![Page 20: Jvm](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/20.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/21.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062704/555c3eced8b42a2c068b4c2d/html5/thumbnails/22.jpg)
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