命名约定通常为company.domain.inreverse.appname
是否有使用实际公司域的重要性
要求,因为我错误地命名了包com.companyName.app.appName
而不是in.co.companyName.app.appName
(公司的实际互联网域名为companyName.co.in)
那么它会以任何方式影响我的应用程序和/或它与网站的关系吗?
答案 0 :(得分:0)
不..它不会。我们的想法是赋予全球唯一性。
查看此页面:https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions
The Java Language Specification establishes package naming conventions to avoid the possibility of two published packages having the same name.
但请记住:http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html
Package names are written in all lower case to avoid conflict with the names of classes or interfaces.