Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
IIRC Sourceforge Java 项目可以使用该net.sf包作为他们的顶级包,所以我的 Java 项目可以使用net.sf.mylib- 这仍然是一个有效的选项吗?(我有一些注册的域,但我希望独立于这方面的未来命名更改)
net.sf
net.sf.mylib
你可以随意命名一个包。以相反的域顺序命名它只是习惯(com.sun.sunlib对于 Sun 事物)。
com.sun.sunlib
问题是,如果它们具有相同的包名和类名,您可能会无意中与其他产品发生冲突。