下記にサンプルを示します。 myApp Test.java pkgA SamePkgSameClass.java SamePkgSubClass.java SamePkgOtherClass.java pkgB OtherPkgSubClass.java OtherPkgOtherClass.java class Test { public static void main(String[] args) { pkgA.SamePkgSameClass o1 = new pkgA.SamePkgSameClass(); pkgA.SamePkgSubClass o2 = new pkgA.SamePkgSubClass(); pkgA.SamePkgOtherClass o3 = new pkgA.SamePkgOtherClass(); pkgB.OtherPkgSubClass o4 =