Java OCA OCP Practice Question 958

Question

Which of the following are legal import statements?

  • A. import java.util.Vector;
  • B. static import java.util.Vector.*;
  • C. import static java.util.Vector.*;
  • D. import java.util.Vector static;


A, C.

Note

The import keyword may optionally be followed by the static keyword.




PreviousNext

Related