aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Can Constructors throw Exceptions?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Can Constructors throw Exceptions??" Watch "Can Constructors throw Exceptions??" New topic
Author

Can Constructors throw Exceptions??

N Mukherjee
Ranch Hand

Joined: Jun 08, 2000
Posts: 141
Hi Everybody,
Can any constructor throw Exception?
Plz give reasons.Pardon my ignorance.
Regds
NM


"Knowledge is Power"****************<A HREF="http://www.geocities.com/nityananda_mukherjee" TARGET=_blank rel="nofollow">THREAD/SCJP RESOURCES</A>
Bharatesh H Kakamari
Ranch Hand

Joined: Nov 09, 2000
Posts: 198
Tes Constructors can throw Exceptions.
The reason for constructors throwing exceptions are the same for any method throwing / handling Exceptions.
Hemal Mehta
Ranch Hand

Joined: Nov 16, 2000
Posts: 101
Constructors can have returns provided its just return;
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can Constructors throw Exceptions??