View Single Post
  #4 (permalink)  
Old 01-07-2008, 03:48 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Careful though
Hello bugger.

Be careful when you use the throws keyword. It means that the user of your methods will need to worry about it. If your main() method throws exceptions it could mean that its caller may have problems with it and your program can crash. Remember that if you throw an exception then you must catch it as well.
__________________
If your ship has not come in yet then build a lighthouse.
Reply With Quote