This week's book giveaway is in the Java 9 forum. We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line! See this thread for details.
Hi, Who is in charge of registering the name of the packages? I mean if I decide to have packages starting with fr.toto, who can guarantee that no one will ever use it? W.
posted 14 years ago
It is a convention - not a law. NO ONE can quarantee that others won't use it. However, since the industry standard is to use package names with an inverted domain address that you have registered, no one else would be able to register the SAME domain name. Therefore if everyone follows this standard there will be no clashes. So all packages belonging to GM would be in packages named com.gm.whatever etc.
"JavaRanch, where the deer and the Certified play" - David O'Meara