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

Explain when we should make an instance variable private.

0 Answers  


Can you use abstract and final both with a method?

0 Answers  


my method "abc" return array of interface "xyz" and "pqr" is abstract class implements abc and class "jkl" extends pqr My problem 1) when i call abc it retrun array xyz how can i do this hint xyz refer_xyz = new jkl(); but i can't create array. 2)I want to access method of jkl using reference of xyz??

1 Answers  


What is public/private protected in java?

0 Answers  


What are the types of strings?

0 Answers  


Explain restrictions on using enum?

0 Answers  


What is the purpose of the system class in java?

0 Answers  


if the memory capacity is 700 presently occupied by process is 690. then another process request space(40) how this situation handled in java.

4 Answers   Wipro,


What is multithreading in java?

0 Answers  


Why are constructors used?

0 Answers  


What are the similarities between an array and an ArrayList?

3 Answers  


What class of exceptions are generated by the java run-time system?

0 Answers  


Categories