aspose file tools*
The moose likes Beginning Java and the fly likes constructor can throw the exception or not Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "constructor can throw the exception or not" Watch "constructor can throw the exception or not" New topic
Author

constructor can throw the exception or not

ajay verma
Ranch Hand

Joined: Dec 10, 2007
Posts: 37
i am a bit confuse.let me know asap
thank you
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Not an advanced question.

Constructors can throw exceptions.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Hrishikesh Ghatnekar
Greenhorn

Joined: Oct 25, 2004
Posts: 28
Yes Of course they can.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: constructor can throw the exception or not