Java Reference
In-Depth Information
LISTING 1.3
continued
(
String
[]
args )
{
System.out.println (
"A quote by Abraham Lincoln:" )
; System.out.println
(
"Whatever you are, be a good one."
)
;
}
}
OUTPUT
A quote by Abraham Lincoln:
Whatever you are, be a good one.
SELF-REVIEW QUESTIONS (see answers in Appendix N)
SR 1.20 When was the Java programming language developed? By whom?
When was it introduced to the public?
SR 1.21 Where does processing begin in a Java application?
SR 1.22 What do you predict would be the result of the following line in a
Java program?
System.out.println("Hello"); // prints hello
SR 1.23 What do you predict would be the result of the following line in a
Java program?
// prints hello System.out.println("Hello");
SR 1.24 Which of the following are not valid Java identifiers? Why?
a. RESULT
b. result
c. 12345
d. x12345y
e. black&white
f. answer_7
 
Search WWH ::




Custom Search