Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Package

 
Lee Kian Giap
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I come to a doubt on "How to use package in Java?"
I doesn't mean the naming convention of package (such as using reverse domain name e.g. com.abc.xxxxxxx)

What I wish to ask is , let say my project involve 50 java files , how do I going to group them into different package ?
Anyone know whether there is Best Practice on doing this ?
e.g. package by function , package for access control purpose ??? or any other suggestion from working experience ???

Thanks in advance ~
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lee,
It really depends what you have. The distinctions you described work. If the packages are large, you'd want to divide them further by function.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic