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