Apply Your Knowledge

Review Questions

1:What is a Java package, and how is it used?
2:What is a compilation unit?
3:How are Java source code files named?
4:What restrictions are placed on the location of a package statement within a source code file?
5:Which package is always imported by default?
6:What is the return type of a program's main() method?
7:What is the argument type of a program's main() method?
8:Which non-Unicode letter characters can be used as the first character of an identifier?
9:Which characters can be used as the second character of an identifier, but not as the first character of an identifier?
10:Are true and false keywords?
11:Is null a keyword?
12:Is sizeof a keyword?
13:Name the eight primitive Java types.
14:What is the range of ...

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.