Dror: 'com.animal.Cat' is not the most accurate package declaration because you will not put a file inside a folder with the file name. Why not? I can place different kinds of cats and classes related to cat in that package. An example would be
javax.servlet package. There is an interface called
Servlet in that package. Here is another one,
java.applet.
if you have a file called yellow.txt
will you put it in a folder called 'yellow' or in a folder called 'colors'?
what happens if you then have a red.txt? Why can't I place it in a folder called yellow? Perhaps my intention is to put different shades of yellow color in that folder and not interested in other colors.
What I'm trying to say is, how a package is named depends on its context and also the coding standard the team employed.
Joyce
[ June 28, 2005: Message edited by: Joyce Lee ]