Lecture
Lecture
(Elective-1)
Lecture 2
Today’s Agenda
• Editions Of Java
• Interpreter
• Yes,
because if an instruction needs to be executed 100
times (for example inside a loop) then the interpreter
needs to convert it 100 times.
No , not at all.
The JITC lives inside the JVM and converts bytecode to machine
understandable form
What Is JRE ?
• Yes
• No
STEP 1: Go to
http://www.oracle.com/technetwork/java/javase/do
wnloads/index.html
Step 2 : Accept The License
Step 5:
Just keep clicking next option and finally the setup will
run and java would be installed on it’s default path
which is c:\program files\java
Verifying Installation
Inside the java folder you will see two folders, one is
would be jdk1.8.0_XX and other is for jre
Go to start type cmd and open it by double click on
it and go to javas bin folder and type java –version
as shown below:-
Developing Java Programs
class Test
{
public static void main(String [ ]args)
{
System.out.println(“Hello User”);
}
}
Understanding The Program
class Test
No , not at all.
• Yes
• No
• Yes
• No
Answer: A,B,E,G
End Of Lecture 2