Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichael Anderson
3,971 PointsQuestion about packages and their naming conventions
Hi everyone!
I'm still a little confused about the package naming conventions. I understand that the naming convention for our package is the reversed domain (e.g. com.treehouse), but in a big project with multiple packages, where do those packages go? Under treehouse (e.g. com.treehouse.package1)? Under com (e.g. com. package1)?
Also, I assume there are separate com.treehouse packages for different projects you work on, right? But they are named the same?
Any clarification would be a big help!
Thanks!
1 Answer
alexlazau
10,930 PointsI asked this question myself and found a nice answer here:
http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html