Sunday, April 21, 2013
Java Self-Review Exercises
Fill in the blanks in each of the following statements:
1.) A begins the body of every method, and a(n) ends the body of
every method.
2.) Every statement ends with a(n) .
3.) The statement (presented in this chapter) is used to make decisions.
4.) Begins an end-of-line comment.
5.) , , and are called white space.
6.) Class contains methods that display message dialogs and input dialogs.
7.) Are reserved for use by Java.
8.) Java applications begin execution at method .
9.) Methods and display information in the command window.
10.) A(n) method is called by using its class name followed by a dot (.) and its
method name.
ANSWERS:
1. ANS: left brace ({), right brace (})
2. ANS: semicolon (;)
3. ANS: if
4. ANS: //
5. ANS: Blank lines, space characters, newline characters and tab characters
6. ANS: JOptionPane
7. ANS: Keywords
8. ANS: main
9. ANS: System.out.print and System.out.println
10. ANS: static
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment