It seems there a ‘default package’ in eclipse.
What’s it?
It seems there a ‘default package’ in eclipse. What’s it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Leaving a class without a package, i.e. in the default package, is fine if you’re just hacking something up for an example or something.
However, as soon as you start adding more and more classes without packages you’ll soon find things getting messy.
The main reason not to use the default package is the potential for conflicts with other code. This is where it is helpful to use the “reverse domain name” style of package naming such as “com.stackoverflow.utils.MagicConverter”.
Use packages.