Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Can the main() method throw Exceptions ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can the main() method throw Exceptions ?" Watch "Can the main() method throw Exceptions ?" New topic
Author

Can the main() method throw Exceptions ?

Parag Kale
Greenhorn

Joined: Apr 08, 2001
Posts: 25
Can the main() method throw any exceptions ?
In general, is there any restriction on static methods for throwing Exceptions ?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Yes, main can throw exceptions and can be declared to throw exceptions.

Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can the main() method throw Exceptions ?
 
Similar Threads
Can Constructors throw Exceptions??
K&B Chapter 5 Self-test Question #8
Regarding Overiding
Reg. main method
exam lab practice exam -1, question24 need justification?