I'm studying for OCAJP 8 certificate with Boyarsky, Selikoff study guide (EXAM 1Z0-808)
In the review questions of the first chapter, question 5 states:
Given the following classes, which of the following can indipendently replace INSERT IMPORTS HERE to make the code compile? (Choose all that apply)
A. import aquarium.*;
B. import aquarium.*.Jelly;
C. import aquarium.jellies.Jelly;
D. import aquarium.jellies.*;
E. import aquarium.jellies.Jelly.*;
F. None of these can make the code compile
I answered F because I supposed that all the code was in the same file.
The solutions instead give as correct answers C and D because every class is supposed to be in its own file.
Is this a general rule?
When I find a question like this, how the code is supposed to be organised? Every class in its own file?