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
What java ide should I use?
What are the types of methods in java?
Define an applet in java?
What is polymorphism and what are the types of it?
What is the purpose of checked and unchecked exceptions in JAVA?
What will happen when using pass by reference in java?
What is string example?
Explain the polymorphism principle?
Why we use set in java?
What is difference between throw and throws ?
What is a method in coding?
What are the advantages of passing this into a method instead of the current class object itself?
What is the argument in java?
What is string builder?
What is unmodifiable collection in java?