This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About Package  RSS feed

 
James Lee
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some questions about grouping classes in package.
As mentioned in the requirement, we have to put classes related to database to package suncertify.db. If I have a class(act as the Data Client mentioned in the requirement) for communicating with server side, do I also need to put it in this package?
I also defined a class, where object of this class is used by both the client and server side. If I put this class in suncertify.server, then the client class need to import suncertify.server package. This seems a little bit odd. What's the usual practice for this situation?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!