Given the directory structure:
And the following source file:
Which statements must be added for the source code to compile:
A- package org;
B- import org.*;
C- package org.*;
D- package org.ex;
E- import org.ex.*;
F- package org.ex.why;
G- package org.ex.why.Dog;
The correct answers are B,E and F.
So what I would like to know is:
1 - When we say "import org.*;" does this only import the files in the org directory and not any subdirectories?
With regard to this question, how are you supposed to know/deduce what directory MyClass is in?