Class - 8 - Computer - Chapter-2 (Introduction To Java)
Class - 8 - Computer - Chapter-2 (Introduction To Java)
SOURCE OBJECT
CODE ( High Level COMPILER CODE ( MACHINE
Language ) LANGUAGE CODE )
DIFFERENCE BETWEEN
COMPILER AND INTERPRETER
COMPILER INTERPRETER
UNIX MACHINE
UNIX
LANGUAGE
COMPILER (OBJECT CODE)
JAVA COMPILATION PROCESS
JAVA VIRTUAL MACHINE (JVM) : JVM stands for Java Virtual
Machine. It is a virtual machine that runs Java programs and
can be installed on several operating systems such as Windows ,
UNIX, Macintosh etc. JVM allows Java programs to run on
almost any computer . A JVM processes instructions similar to a
physical processor . Java Source code extension is .java.
JAVA BYTECODE : The programs written in Java are compiled
into a machine language for a vitual computer called Java
Virtual Machine (JVM) The machine language for this special
Java Virtual Machine is called Java Bytecode . The Bytecode
files are generated with the “.class“ extension.
JAVA COMPILATION PROCESS : Source code written in Java
language is compiled into Java Bytecode. This bytecode is
interpreted by a Java interpreter ( is called JVM) to produce
output . This process is called Java compilation . Java byte code
interpreter is need for each different type of computer like
windows , unix and Macintosh . Java byte code interpreter can
run any Java Bytecode Program
JAVA COMPILATION PROCESS
JAVA
JAVA COMPILER BYTECODE
SOURCE CODE
WINDOWS RUNNING
JVM
MACINTOSH
RUNNING JVM
THANK YOU