+ 2

What is "com.java"

14th Dec 2016, 1:35 PM
Vaibhav Singhal
Vaibhav Singhal - avatar
3 odpowiedzi
+ 4
According to Sun, packages should be namespaced according to the inverse of your domain name, and then followed by whatever you see fit. Most companies or organisations have a .com, or .org domain name, and hence most packages start with com. or org.. To quote from the Sun Code Conventions: The prefix of a unique package name is always written in all-lowercase ASCII letters and should be one of the top-level domain names, currently com, edu, gov, mil, net, org, or one of the English two-letter codes identifying countries as specified in ISO Standard 3166, 1981. Subsequent components of the package name vary according to an organization's own internal naming conventions. Such conventions might specify that certain directory name components be division, department, project, machine, or login names. And the examples that they give, make it pretty clear that you are meant to use the companies DNS name: com.sun.eng com.apple.quicktime.v2 edu.cmu.cs.bovik.cheese You will also see edu. and net. packages out in the wild as well, although they are less common.
14th Dec 2016, 1:45 PM
Vipul Walia
Vipul Walia - avatar
+ 2
package name
15th Dec 2016, 4:15 AM
Ali Hasan
Ali Hasan - avatar
0
what is applet
23rd Dec 2016, 12:18 PM
prasanthi.s