Java OCA OCP Practice Question 32

Question

Which package is imported into every Java class by default?

  • A. java.util
  • B. java.lang
  • C. system.lang
  • D. java.system


B.

Note

The package java.lang is imported into every Java class, so Option B is correct.

The other options must be explicitly imported.

Option A exists but must be explicitly imported.

Options C and D do not exist in the standard Java runtime.




PreviousNext

Related