This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Fernando Franzini wrote:
It's doen't mean that I can't put this exceptions classes inside another inner package inside suncertify.db ? like suncertify.db.exception
If you put these exceptions in suncertify.db.exception, you will fail automatically. So don't do it If you run my test case to validate your submission jar 1 of the tests is a check to see if these exceptions are in the correct package, suncertify.db that is.
If you create another own exception (not mentioned in the provided interface), you can put that one in every package you want (but of course it would be normal to put that one in the suncertify.db package too).
Yes, Fernando! You can certainly create other packages inside your suncertify.db package. But for instance, you still must create the Data class inside your suncertify.db package so you don't get automatically failed. So, as long as everything that must be in a particular place is in that particular place, it's fine.