KEMBAR78
Java byte code presentation | PPTX
Presentated By:
Mahnoor Hashmi
Subject:
Java Programming Language
Presentation
Java Byte code
 Java is a programming language originally
developed by James Gosling at Sun Microsystems.
 The language drives much of its syntax from
C and C++ but has a simpler object model.
 Java applications are typically compiled to
byte code (class file) that can run on any Java
Virtual Machine (JVM).
Java Byte Code
 Byte codes are the machine language of the java
virtual machine. A feature that different the java
with other programming features.
 It is a programming code that, once compiled, is run
through a virtual machine.
 Byte code is the compiled format for Java programs.
 Once a Java program has been converted to byte code,
it can be transferred across a network and executed
by Java Virtual Machine (JVM).
Virtual Machine
o Before understanding what is JVM let us first
know what is Virtual Machine.
A virtual machine is a layer of abstraction that
gives a program one simplified interface for
interacting with a variety of physical
computers and their operating systems.
Java Virtual Machine
 The Java Virtual Machine (JVM) is the runtime engine of
the Java Platform, which allows any program written
in Java or other language compiled into Java byte code to
run on any computer that has a native JVM.
 The byte code can be executed on any platform where
there exist JVM. It is available for many hardware and
software platforms.
 JVM executes the step-by-step instructions given to
it from the byte code.
z
 JVM provides run time environment in which java byte code
can be executed.
 When program compiles, the java compiler translates the
java source code into a .class file
(byte codes) that contains the compiled version of program.
 Byte codes are platform independent and proves Java is an
independent language. JVM can run on different operating
systems.
 Java Class File:
Java class file is a file (with the .class extension)
containing a Java byte code which can be
executed on the Java Virtual Machine (JVM).
Components of JVM:
 Byte code verifier.
 Class loader.
 Execution engine.
 Garbage collector.
 Security manager.
Byte Code Verifier:
 Used to verify the byte code.
 Checks for unusual code.
 A crucial component for security.
Class loader:
 Loads java classes into JVM.
 All JVM include one class loader that is
embedded in the virtual machine.
 The main feature of the class loader is that
JVM. doesn’t need to have any knowledge
about the classes that will be loaded at
runtime.
Execution Engine:
 Helps JVM to convert byte code into machine
code using interpreter.
Garbage Collector:
 Process of automatically freeing objects that are
no longer referenced by the program.
 Relieves java programmer from memory
management.
Security Manager:
 Monitors the code.
 A special java object responsible for guarding
security policies for java applications.
Java byte code presentation

Java byte code presentation

  • 1.
  • 2.
  • 3.
     Java isa programming language originally developed by James Gosling at Sun Microsystems.  The language drives much of its syntax from C and C++ but has a simpler object model.  Java applications are typically compiled to byte code (class file) that can run on any Java Virtual Machine (JVM).
  • 4.
    Java Byte Code Byte codes are the machine language of the java virtual machine. A feature that different the java with other programming features.  It is a programming code that, once compiled, is run through a virtual machine.  Byte code is the compiled format for Java programs.  Once a Java program has been converted to byte code, it can be transferred across a network and executed by Java Virtual Machine (JVM).
  • 5.
    Virtual Machine o Beforeunderstanding what is JVM let us first know what is Virtual Machine. A virtual machine is a layer of abstraction that gives a program one simplified interface for interacting with a variety of physical computers and their operating systems.
  • 6.
    Java Virtual Machine The Java Virtual Machine (JVM) is the runtime engine of the Java Platform, which allows any program written in Java or other language compiled into Java byte code to run on any computer that has a native JVM.  The byte code can be executed on any platform where there exist JVM. It is available for many hardware and software platforms.  JVM executes the step-by-step instructions given to it from the byte code.
  • 7.
  • 8.
     JVM providesrun time environment in which java byte code can be executed.  When program compiles, the java compiler translates the java source code into a .class file (byte codes) that contains the compiled version of program.  Byte codes are platform independent and proves Java is an independent language. JVM can run on different operating systems.  Java Class File: Java class file is a file (with the .class extension) containing a Java byte code which can be executed on the Java Virtual Machine (JVM).
  • 9.
    Components of JVM: Byte code verifier.  Class loader.  Execution engine.  Garbage collector.  Security manager.
  • 10.
    Byte Code Verifier: Used to verify the byte code.  Checks for unusual code.  A crucial component for security.
  • 11.
    Class loader:  Loadsjava classes into JVM.  All JVM include one class loader that is embedded in the virtual machine.  The main feature of the class loader is that JVM. doesn’t need to have any knowledge about the classes that will be loaded at runtime. Execution Engine:  Helps JVM to convert byte code into machine code using interpreter.
  • 12.
    Garbage Collector:  Processof automatically freeing objects that are no longer referenced by the program.  Relieves java programmer from memory management. Security Manager:  Monitors the code.  A special java object responsible for guarding security policies for java applications.