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


Please Help Members By Posting Answers For Below Questions

Does java runtime require a license?

766


What do you mean by local variable and instance variable?

700


What is the final variable?

922


Which collection is thread safe in java?

727


Why wait and notify methods are declared in object class?

789


What is the synchronized method modifier?

829


Why chararray() is preferred over string to store the password?

736


What is variable and constant explain with example?

757


Explain about exception propagation?

757


What is the use of predicate in java 8?

680


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

835


What is the difference between array list and vector in java?

713


Explain the difference between call by refrence and call by value?

780


What is covariant return type?

840


Can inner class be public in java?

733