I'm preparing to take OCA exam in June. I'm reading OCA Java SE 8 Study Guide. There's one question I need clarification for "import" keyword. Exam number 7 for chap 1. Question is as below :
Given the following classes, which of the following snippets can be inserted in place of
INSERT IMPORTS HERE and have the code compile? (Choose all that apply)
A. import aquarium.*;
B. import aquarium.Water;
C. import aquarium.*;
D. import aquarium.*;
E. import aquarium.Water;
F. None of these imports can make the code compile.
Correct answers are : A,B,C
I understand why B & C are correct. However, I'm confused about being A is correct. There are two same class under different package. One inside "aquarium" package. Another one is "aquarium/jellies" package. importing using "import aquarium.*" doesn't make java to confuse which class from which package to import?