• Post Reply Bookmark Topic Watch Topic
  • New Topic

directory names: what does 'com' stand for?  RSS feed

 
sven studde
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
e.g. on p. 72 of "Head First Servlets & JSP". The diagram has a directory structure like this:

beerV1
|
src
|
com
|
example
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that there is an old habit to give packages name the reversed domain name of the server. For example, for sources in mycompany.com, we could have:
src/com/mycompany/beans/Person.java

You don't need to worry about this. You can give it any naming you want.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason for this convention is so that package names do not collide. Since your domain name is your and yours alone, no one else should ever use a package name that matches your domain.

For example, only I should ever use a package path that begins with org.bibeault.
 
sven studde
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!