This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Don't get me started about those stupid light bulbs.
 
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?