+ 1
Say i have two packages
one named default package and the other named sample package. and default contains the class MyClass and sample package contains the class animal. now my question is do i need to import the animal class in order to use it in my class MyClass
1 Respuesta
+ 3
Yes you'd need to import sample.Animal
Note:
default cannot be used as a user/programmer defined package name/identifier as it is already used by the Java language.