1 | package aquarium; |
A. import aquarium.*;
B. import aquarium.Water; import aquarium.jellies.*;
C. import aquarium.*; import aquarium.jellies.Water;
D. import aquarium.; import aquarium.jellies.;
E. import aquarium.Water; import aquarium.jellies.Water;
F. None of these imports can make the code compile.
Answers: A B C
✔︎ OptionA will incorporate all classes in the package aquarium;
✔︎ OptionB importing by classname will take precedence over wildcards;
✔︎ OptionC importing by classname will take precedence over wildcards;
✕ OptionD Java doesn’t know which of two wildcards Water will be used;
✕ OptionE specify the same classname Water in two imports