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

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

Answer Posted / ajay dhingra

Yes we can handle exception or error using throwable in
catch because Throwable is super class of all error and
exception.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override a variable in java?

543


What are annotations in java?

616


Which is bigger float or double java?

516


How do you classify Dialog Box?

641


Why synchronization is important in java?

556






What are the advantages of exception handling?

548


What does || || mean in math?

509


Can you override private or static method in java?

545


What are recursive functions?

571


Can we override the static methods?

562


How to make a non daemon thread as daemon?

540


What do you meant by active and passive objects?

601


How do you get the length of a string in java?

516


What is meant by singleton class?

595


Describe string intern() methodology

589