Hello Guest

why org/com package pre-fix?

  • 2 Replies
  • 6192 Views
*

Offline bobjob

  • ****
  • 394
  • LWJGL: WOW SO GOOD
why org/com package pre-fix?
« on: May 23, 2008, 01:10:43 »
does anyone know why alot of custom api's have com. or org. at the start of there package directory?


Re: why org/com package pre-fix?
« Reply #1 on: May 23, 2008, 01:26:13 »
It's the Sun-recommended package naming convention:

Quote
You form a unique package name by first having (or belonging to an organization that has) an Internet domain name, such as sun.com. You then reverse this name, component by component, to obtain, in this example, com.sun, and use this as a prefix for your package names, using a convention developed within your organization to further administer package names.

*

Offline bobjob

  • ****
  • 394
  • LWJGL: WOW SO GOOD
Re: why org/com package pre-fix?
« Reply #2 on: May 23, 2008, 07:24:54 »
cool thanx, now i think i actually remember that when i was learning java, but i skimmed over it, thinkn i would never make my own package :D