Apply Your Knowledge

Review Questions

1:What is the purpose of a statement block?
2:For which statements does it make sense to use a label?
3:What is the difference between an if statement and a switch statement?
4:What restrictions are placed on the values of each case of a switch statement?
5:How are commas used in the initialization and iteration parts of a for statement?
6:What is the difference between a while statement and a do statement?
7:Can a for statement loop indefinitely?
8:What is the difference between a break statement and a continue statement?
9:What classes of exceptions can be caught by a catch clause?
10:What class of exceptions is generated by the Java run-time system?
11:What happens if an exception is not caught?
12:What is the purpose ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.