What is the convention for word separator in Java package names?
问题 How should one separate words in package names? Which of the following are correct? com.stackoverflow.my_package (underscore) com.stackoverflow.my-package (hyphens) com.stackoverflow.MyPackage (CamelCase) What is the general standard? 回答1: Here's what the official naming conventions document prescribes: Packages 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