Appendix H
Practice Exam
Q1: Package statements
  1.  Which statement is not true about package statements?
A. Package statements are optional.
B. Package statements are limited to one per source file.
C. Standard Java coding convention for package names reverses the domain name of the organization or group creating the package.
D. The package names beginning with javas.* and javaw.* are reserved.
Hint: Consider the package names java.util and javax.swing.
Reference: Chapter 1: Packaging, Compiling, and Interpreting Java Code
Objective: Understand Packages
Q2: Import statements
  2.  Which statement represents a valid statement that will allow for the inclusion of classes from the java.util package?
A. import java.util;
B. import java.util ...

Get OCA Java SE 7 Programmer I Study Guide (Exam 1Z0-803), 2nd Edition 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.