Professional Documents
Culture Documents
Hello World!!!
JAVA FUNDAMENTALS
x = size 5;
Declare a Shoe variable myShoe and make a new Shoe using color and size
If the x is less than 20, tell the shoe run for 5 miles.
While ( x > 8) {
myShoe.jogg();
}
Declare a list of integers variable numList and put 1,3,5,7,9 values in to list.
System.out.println(Hello);
Java Program
Hello World
Command Line
Demo Time
Java Program
Hello World2
HelloWorld in IDE
Demo Time
Comments
Purpose
Author
10
Quiz Time
Prior to acquiring an official name Java, the
pre-released version of Java was called
__________ language.
Answer :
Oak Programming Language
11
Quiz Time
Who is the father of Java
Programming language
a.
b.
c.
d.
e.
Roy Fielding
James Gosling
Eric Schmidt
Steve Jobs
David Beckham
Answer :
James Gosling
12
Quiz Time
Which of the following
command invokes Java Virtual
Environment?
a.
b.
c.
d.
e.
cmd
javac
java
gedit
System.out.println
Answer :
Java