Successfully reported this slideshow.
Byte code of Java and OOP concepts                                     1
ObjectivesOn completion of this period, you would be able to    know :•   The byte codes of Java•   jvm                   ...
Recap•   What are the features of Java Applications and    Applets ?                                                     3
Byte codes of Java, JVM•   All language compilers translate source code into    machine code for a specific computer•   Ja...
Contd..           Byte codes of Java, JVM•   This machine      is   called   the   Java     Virtual    Machine(JVM)•   JVM...
Contd..     Byte codes of Java, JVMJava Program       Java Compiler   Byte CodeSource Code                        Virtual ...
Contd..          Byte codes of Java, JVM•   Byte code is also known as virtual machine code•   The virtual machine code is...
Contd..   Byte codes of Java, JVMFig. 4.2 Byte code translation to machine code                                           ...
SummaryIn this class we have discussed•   Byte codes of Java, JVM•   OOP concepts                                  9
Quiz1.All language compilers translate _________ into    machine codea)   Object Codeb)   Source Codec)   Executable coded...
Frequently Asked Questions•   Explain JVM•   Explain Byte Codes of JAVA•   What are the Concepts of OOP•   Explain the OOP...
Upcoming SlideShare
Loading in …5
×

Byte code jvm

564 views

Published on

  • Be the first to comment

  • Be the first to like this

Byte code jvm

  1. 1. Byte code of Java and OOP concepts 1
  2. 2. ObjectivesOn completion of this period, you would be able to know :• The byte codes of Java• jvm 2
  3. 3. Recap• What are the features of Java Applications and Applets ? 3
  4. 4. Byte codes of Java, JVM• All language compilers translate source code into machine code for a specific computer• Java compiler also does the same thing• The Java compiler produces an intermediate code known as ‘Byte code’ for a machine 4
  5. 5. Contd.. Byte codes of Java, JVM• This machine is called the Java Virtual Machine(JVM)• JVM is a platform-independent execution environment that converts Java byte code into machine language and executes it• It exists only inside the computer memory• Fig 4.1. illustrates the process of compiling a Java program into byte code 5
  6. 6. Contd.. Byte codes of Java, JVMJava Program Java Compiler Byte CodeSource Code Virtual machine instructions Fig 4.1 Byte code 6
  7. 7. Contd.. Byte codes of Java, JVM• Byte code is also known as virtual machine code• The virtual machine code is not machine code• The machine code is generated by the Java interpreter• Byte code acts as an intermediatery between the virtual machine and the real machine as shown in Fig. 4.2 7
  8. 8. Contd.. Byte codes of Java, JVMFig. 4.2 Byte code translation to machine code 8
  9. 9. SummaryIn this class we have discussed• Byte codes of Java, JVM• OOP concepts 9
  10. 10. Quiz1.All language compilers translate _________ into machine codea) Object Codeb) Source Codec) Executable coded) All the above 10
  11. 11. Frequently Asked Questions• Explain JVM• Explain Byte Codes of JAVA• What are the Concepts of OOP• Explain the OOP Concepts 11

×