Are nested try statements are possible?

Answers were Sorted based on User's Feedback



Are nested try statements are possible?..

Answer / venkat.kanneganti

yes,nested try statements are possible,nothing wrong
try {
//some code
try {
//some code
}
catch(Exception e){
}
}
catch(Exception e) {
}

Is This Answer Correct ?    2 Yes 0 No

Are nested try statements are possible?..

Answer / ravikiran(aptech mumbai)

yes try with in try is possible.outer try gets evaluated
first then the inner try

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

Functionality of JVM?

7 Answers   Infosys,


Can we create constructor in abstract class ?

0 Answers  


Can we have a method name same as class name in java?

0 Answers  


Explain pass by reference and pass by value?

8 Answers   IBM, Wipro,


What method is used to know the status of Checkbox(i.e it is checked or unchecked)?

1 Answers  






What is string length in java?

0 Answers  


Can we restart a thread already started in java?

0 Answers  


What is the function of compareto in java?

0 Answers  


Can u write constructor in abstract.If yes den when it will be invoked.

4 Answers   SunGard,


What is the final keyword denotes?

0 Answers  


What is Java Annotations?

0 Answers  


what are class,constructor and primitive data types?

2 Answers   IBM,


Categories