O'Reilly logo

OCA Java SE 7 Programmer I Study Guide (Exam 1Z0-803) by Liguori Robert, Finegan Edward

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required