View Single Post
  #1 (permalink)  
Old 01-07-2008, 10:03 AM
bugger bugger is offline
Senior Member
 
Join Date: Nov 2007
Posts: 111
bugger is on a distinguished road
Main method with throws Exception
I want to know if it is good idea to use throws Exception with main method:

Code:
public static void main(String[] args) throws Exception { ...
Code:
public static void main(String[] args) throws SQLException { ...
I believe its a quick way to program, because in the other case, you have to write many try catch blocks.

Is this a right approach?

Chao
Reply With Quote
Sponsored Links