Packages and Interfaces  «Prev  Next»

Java Package Basics - Quiz

Each question is worth 1 point. Select the best answer for each question.
 
1. What keyword do you use to import a class or a package containing classes?
Please select the best answer.
  A. include
  B. import
  C. package

2. What standard Java package is automatically imported into every Java program?
Please select the best answer.
  A. java.applet
  B. java.lang
  C. java.io

3. Where must you place the package statement in order to identify the package to which a class belongs?
Please select the best answer.
  A. At the beginning of the source code file for the class
  B. At the end of the source code file for the class
  C. Anywhere in the source code file for the class


Your score is 0.0