Object Oriented Programming: Dr. Madiha Liaqat Assistant Professor SED, UET, Taxila
Object Oriented Programming: Dr. Madiha Liaqat Assistant Professor SED, UET, Taxila
PROGRAMMING
PROGRAM
COURSE LEARNING OUTCOME (CLO) LEARNING
OUTCOME (PLO)
1.Describe the concepts of object-oriented paradigm. 1
2.Examine the programs to comprehend their structures. 2
Java History
Versions of Java
Features of Java
Java Procedure
Compile it with
> javac Test.java
Bytecode
Representation
PROGRAMMING TOOLS
You can choose from essentially two different programming
environments for Java:
Manual – with text editor (notepad) create the Java source
code files (*.java) and then use the command line tools in the
Java Software Development Kit (SDK). The SDK is provided by
Sun for several platforms and includes a number of tools, the
most important of which are:
javac - compiles Java source code files (e.g. Test.java) to
Borland JBuilder
Eclipse
Dr Java
PROGRAMMING TOOLS
Java Environment/ Life Cycle of Java
Code
Runtime
Compile-time Environment
Environment Class Loader
Java Class
Bytecode Libraries
Java Verifier
Source
(.java)
Just in
Java
Time
Java Interpreter Java
Compiler
Bytecodes Virtual
Java move locally machine
Compiler or through
network
Runtime System
Java
Bytecode Operating System
(.class )
Hardware
BYTE CODE
• Java programs are translated into an intermediate
language called bytecode.
• Bytecode is the same no matter which computer
platform it is run on.
• Bytecode is translated into native code that the
computer can execute on a program called the
Java Virtual Machine (JVM).
• The Bytecode can be executed on any computer
that has the JVM. Hence Java’s slogan, “Write
once, run anywhere”.
CLASS LOADER & BYTECODE VERIFIER
The procedure followed to obtain and install a class goes as follows:
Loading includes the following tasks:
◦ locate the bytecode file in a disk file
◦ read it into the JVM's method area on the heap.
◦ parse the class data into sections for constants, methods, fields, etc..
◦ create an instance of java.lang.Class to represent the class.