can u handle an error if u write Thowable in the catch
class lise
try
{
some errorneous code
}catch(Throwable e){ ...}
Answer Posted / 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 |
Post New Answer View All Answers
Explain the difference between protected and default access.
Which programming language is most secure?
What is return data type?
What is constructor and virtual function? Can we call a virtual function in a constructor?
How to sort elements in a parallel array in java?
How can an exception be thrown manually by a programmer?
What do you understand by overloading and overriding in java?
How can you say java is object oriented?
Can I use % with real numbers?
How do you do math powers in java?
Convert a BST into a DLL and DLL to BST in place.
What is arrays fill in java?
Is set thread safe java?
what is the difference between preemptive scheduling and time slicing? : Java thread
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?