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



can u handle an error if u write Thowable in the catch class lise try { ..

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

can u handle an error if u write Thowable in the catch class lise try { ..

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

can u handle an error if u write Thowable in the catch class lise try { ..

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

can u handle an error if u write Thowable in the catch class lise try { ..

Answer / manju kt

No u cant because u cannot compile classes with errors

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More Core Java Interview Questions

Why do we need public static void main(String args[]) method in Java...?

1 Answers  


When will you define a method as static?

0 Answers  


What is OOP's Terms with explanation?

0 Answers  


What is package private scope in java?

0 Answers  


What are the different conditional statements?

0 Answers  






What happens if we don’t define serial version uid?

0 Answers  


What is an iterator java?

0 Answers  


what is class.forname() and how it will be useful ?

3 Answers  


What is use of map in java?

0 Answers  


What are the main concepts of oops in java?

0 Answers  


Describe the syntax of multiple inheritance? When do we use such an inheritance?

0 Answers   Fidelity,


What is variable length arguments in java?

0 Answers  


Categories