Is it ok to catch Throwable in catch block? Why?

Is it ok to catch Throwable in catch block? Why?

Postby Kishan » Fri Feb 01, 2013 5:26 am

Is it ok to catch Throwable in catch block? Why?
Kishan
 
Posts: 191
Joined: Tue Jan 29, 2013 4:21 am

Re: Is it ok to catch Throwable in catch block? Why?

Postby Kishan » Thu Feb 07, 2013 6:18 am

It is not recommended to catch Throwable. Because Throwable is the super most class in exceptions. It catches exceptions and errors.
Kishan
 
Posts: 191
Joined: Tue Jan 29, 2013 4:21 am


Return to Core Java

Who is online

Users browsing this forum: No registered users and 1 guest

cron