"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Jvm
1.
2. JVM and Machine Independency
Anjali g
anjalig2009@gmail.com
www.facebook.com/AnjaliG
eetha
twitter.com/AnjaliGeetha
in.linkedin.com/in/Anjali G
9497879952
3. • JVM is the acronym for java virtual machine
• JVM is a platform-independent execution environment that converts Java
byte code into machine language and executes it
• Byte codes are machine code instructions for JVM
• Most programming languages compile source code directly into machine
code that is designed to run on a
specific microprocessor architecture or operating system
4. • JVM interprets compiled java binary code for a computers processor
• “Write once, run everywhere.”
• The Specification specifies an
1. instruction set,
2. a set of registers,
3. a stack,
4. a "garbage heap," and
5. a memory area
• Code for JVM contains in .class files.
5.
6. • The main advantage of this system is the increased compatibility
• relative security of Java programs as a result of the Java Virtual Machine.
• JVM consist of following components:-
1)Byte-code verifier :- It verify the byte-code ,it check's for unusual code.
2)Class Loader :- After verifying Class Loader will load the byte-code into
the memory for execution.
3)Execution engine :-
It further consist of 2 parts :-
a)Interpreter :- It interpret the code & run.
b)JIT(Just-in-Time Compiler)
7. • 4)Garbage Collector:- It periodically check for the object on heap , whose
link is broken
So it can collect the garbage from Heap.
5) Security Manager :- It constantly monitors the code. It is 2nd level of
security.[1st level is Byte-code verifier ].
9. 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
10. Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
Notes de l'éditeur
Since your applications run in a virtual machine instead of directly on your hardware, the developer can program and build their application once, which can then be executed on every device with an implementation of the Java Virtual Machine.