Yes. This is so the compiler can easily find files when a class from outside the package refers to it. And not only the compiler: imagine how annoying it would be when you're looking for the source code of some class, so you can understand the implementation. You would have to open every file in the package to find the class, or write a program to look for it.
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32694
4
posted
0
If you search, you will find many threads about the same question.