• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird DB.java interface

 
Jesse Jackson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have just rec'd the URLyBird assignment for the SCJD.
the interface (DB.java) given in the assignment doesnt have javadocs - I assume we are supposed to add them ?
Additionally, the public modifiers in the interface are unnecessary - are we allowed to remove them ?

I assume that the checking of these things is done by some application or other, so I do not want to remove these if it will cause it to fail.

Also, java.lang.SecurityException is a runtime exception (ie unchecked) - why is this being declared in the throws clause of the methods ?

Many Thanks

JJ
 
Jesse Jackson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
well I have found out the answers from trawling the site, so here they are

1) yes - update the javadocs
2) they are not doing any harm, so just leave them there.
3) You can choose to either use the SecurityException in java.lang, or define yr own one (checked). There are a number of threads covering both of these options.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic