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

What does .equals do in java?

702


What are drawbacks of singleton class?

700


What is the right data type to represent a price in java?

742


Can we serialize arraylist in java?

758


Is java platform independent?

753


What does  mean in regex?

761


Can final class have constructor?

684


What are the string methods in java?

805


How will you invoke any external process in java?

816


What is remote method invocation (rmi)?

805


Why destructor is not used in java?

727


What is the difference between a choice and a list?

813


Is map sorted in java?

799


What does singleton class mean?

720


When is the garbage collection used in Java?

864