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

What is the difference between a method and a function in alice?

572


Can we inherit inner class?

517


What is method reference in java?

551


How do you know if a value is nan?

556


What are the important features of Java 9 release?

526






How do you define a set in java?

502


What are the types of literals?

553


How do you remove an object from an arraylist in java?

452


What is an example of character?

544


What is javac_g?

584


Why we use multi threading instead of multiprocessing?

567


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

829


How concurrent hashmap works?

602


What is a bufferedreader?

520


What is an i/o filter?

559