can u handle an error if u write Thowable in the catch
class lise
try
{
some errorneous code
}catch(Throwable e){ ...}
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / papu
Yes we can handle the exception using Throwable in catch
block.There is no compilation error.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / manju kt
No u cant because u cannot compile classes with errors
| Is This Answer Correct ? | 0 Yes | 8 No |
How the elements are organized in GridLayout?
What is formatted output in java?
What do you mean by synchronized non access modifier?
What is a values collection view ?
What do you mean by of string::valueof expression in java 8?
What things should be kept in mind while creating your own exceptions in java?
Is java call by value?
What is immutable class in java?
What is meant by binding in rmi?
What are the characteristics provided in jdk1.6 apart from other versions?
Why are pointers not secure?
Can we sort set in java?