can u handle an error if u write Thowable in the catch
class lise

try
{
some errorneous code
}catch(Throwable e){ ...}

Answer Posted / aseet padhi

yes.We can handle by using Throwable in catch block because
it's super class of Exception.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is method in java with example?

483


How to overcome the exception object reference not set to an instance of object?

616


What is an interoperable application in java ?

579


Can a class be final?

492


Is 0 an irrational number?

594






Explain implementation and how is it different from conversion?

583


What are the two main uses of volatile in Java?

595


Can a class be a super class and a sub-class at the same time? Give example.

788


What data structures are used to perform recursion?

598


What are white spaces in java?

520


What is the difference between inheritance and encapsulation?

587


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1442


What are sets in java?

500


What is boolean used for?

583


What is a method in java?

552