> I'm using jdk1.1.6v1 glibc jdk, I can compile B.java > successfully. However, A.java & B.java doesn't in the same package, why > it can compile successfully? B.java shouldn't had access right to A.y. > Am I wrong? Pls tell me the error. Leung, you're not using any 'package'-statements, so the code in both files is part of the same unnamed default package. Hence B.getY() does have access to A.y. Gerald
- What is the difference between protected & public? Leung Yau Wai
- Gerald . Struck