SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Byte code of Java and OOP concepts




                                     1
Objectives

On completion of this period, you would be able to
    know :


•   The byte codes of Java
•   jvm




                                                     2
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


•   Java compiler also does the same thing


•   The Java compiler produces an intermediate code
    known as ‘Byte code’ for a machine

                                                    4
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
Contd..

     Byte codes of Java, JVM




Java Program       Java Compiler   Byte Code

Source Code                        Virtual
                                   machine
                                   instructions
              Fig 4.1 Byte code




                                                  6
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
Contd..

   Byte codes of Java, JVM




Fig. 4.2 Byte code translation to machine code




                                                           8
Summary

In this class we have discussed

•   Byte codes of Java, JVM

•   OOP concepts




                                  9
Quiz
1.All language compilers translate _________ into
    machine code

a)   Object Code
b)   Source Code
c)   Executable code
d)   All the above



                                                    10
Frequently Asked Questions


•   Explain JVM
•   Explain Byte Codes of JAVA
•   What are the Concepts of OOP
•   Explain the OOP Concepts




                                   11

Weitere ähnliche Inhalte

Was ist angesagt?

java interface and packages
java interface and packagesjava interface and packages
java interface and packagesVINOTH R
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaShravan Sanidhya
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for DesignersR. Sosa
 
Learn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat ShahriyarLearn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat ShahriyarAbir Mohammad
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java ProgrammingRavi Kant Sahu
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMJava Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMshamnasain
 
Genesis and Overview of Java
Genesis and Overview of Java Genesis and Overview of Java
Genesis and Overview of Java Ravi_Kant_Sahu
 
Core java concepts
Core java  conceptsCore java  concepts
Core java conceptsRam132
 
Introduction to java
Introduction to java Introduction to java
Introduction to java Sandeep Rawat
 
Exception Handling in JAVA
Exception Handling in JAVAException Handling in JAVA
Exception Handling in JAVASURIT DATTA
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of JavaFu Cheng
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to javaAjay Sharma
 
Core Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika TutorialsCore Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika TutorialsMahika Tutorials
 

Was ist angesagt? (20)

Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
 
java interface and packages
java interface and packagesjava interface and packages
java interface and packages
 
Packages in java
Packages in javaPackages in java
Packages in java
 
Java Tokens
Java  TokensJava  Tokens
Java Tokens
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan Sanidhya
 
Java
JavaJava
Java
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for Designers
 
Learn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat ShahriyarLearn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat Shahriyar
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMJava Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Genesis and Overview of Java
Genesis and Overview of Java Genesis and Overview of Java
Genesis and Overview of Java
 
Core java concepts
Core java  conceptsCore java  concepts
Core java concepts
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Java I/O
Java I/OJava I/O
Java I/O
 
Exception Handling in JAVA
Exception Handling in JAVAException Handling in JAVA
Exception Handling in JAVA
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Core Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika TutorialsCore Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika Tutorials
 

Ähnlich wie TITLEByte code and OOP: Java compilation and virtual machine (20)

Jvm
JvmJvm
Jvm
 
intoduction to java
intoduction to javaintoduction to java
intoduction to java
 
JVM.pptx
JVM.pptxJVM.pptx
JVM.pptx
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
 
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
 
JVM.pptx
JVM.pptxJVM.pptx
JVM.pptx
 
Jvm
JvmJvm
Jvm
 
JAVA BYTE CODE
JAVA BYTE CODEJAVA BYTE CODE
JAVA BYTE CODE
 
Java Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptxJava Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptx
 
Introduction to java by priti sajja
Introduction to java by priti sajjaIntroduction to java by priti sajja
Introduction to java by priti sajja
 
Jvm
JvmJvm
Jvm
 
Jvm (1)
Jvm (1)Jvm (1)
Jvm (1)
 
Java unit 1
Java unit 1Java unit 1
Java unit 1
 
Java Starting
Java StartingJava Starting
Java Starting
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operator
 
Advanced java training in bangalore
Advanced java training in bangaloreAdvanced java training in bangalore
Advanced java training in bangalore
 
Advanced java-training-in-bangalore
Advanced java-training-in-bangaloreAdvanced java-training-in-bangalore
Advanced java-training-in-bangalore
 
JVM
JVMJVM
JVM
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 

Mehr von myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

TITLEByte code and OOP: Java compilation and virtual machine

  • 1. Byte code of Java and OOP concepts 1
  • 2. Objectives On completion of this period, you would be able to know : • The byte codes of Java • jvm 2
  • 3. Recap • What are the features of Java Applications and Applets ? 3
  • 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. 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. Contd.. Byte codes of Java, JVM Java Program Java Compiler Byte Code Source Code Virtual machine instructions Fig 4.1 Byte code 6
  • 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. Contd.. Byte codes of Java, JVM Fig. 4.2 Byte code translation to machine code 8
  • 9. Summary In this class we have discussed • Byte codes of Java, JVM • OOP concepts 9
  • 10. Quiz 1.All language compilers translate _________ into machine code a) Object Code b) Source Code c) Executable code d) All the above 10
  • 11. Frequently Asked Questions • Explain JVM • Explain Byte Codes of JAVA • What are the Concepts of OOP • Explain the OOP Concepts 11