标题: [Oracle interview]Does importing a package imports the subpackages as well? [打印本页] 作者: 曹凯 时间: 2013-8-16 15:05 标题: [Oracle interview]Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?作者: 于军 时间: 2013-8-16 15:20
No. you will have to import the subpackages explicitly. Importing com.MyTest.* will import classes in the package MyTest only. It will not import any class in any of it's subpackage.