Java OCA OCP Practice Question 1241

Question

Suppose a source file contains a large number of import statements and one class definition.

How do the imports affect the time required to load the class?

  • A. Class loading takes no additional time.
  • B. Class loading takes slightly more time.
  • C. Class loading takes significantly more time.


A.

Note

Importing is strictly a compile-time function.

It has no effect on class loading or on any other run-time function.




PreviousNext

Related