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

can we create a instance for intwerface?

3 Answers  


What is += mean in java?

0 Answers  


What does super keyword do?

0 Answers  


How OOPS concept is achieved in Java?

6 Answers   Cognizant, JPMorgan Chase, Xavient,


Why are functions called methods in java?

0 Answers  


What is an interoperable application in java ?

0 Answers   HCL,


What is indexof?

0 Answers  


what are the different non-access specifiers in java?

5 Answers  


can u give one sinario when you use Abstract Class and When you use Interface.

5 Answers   ITC Infotech,


What is the range of the short datatype?

2 Answers  


Why const and goto are reserved keyword in java?

1 Answers  


what is the use of clone method? why user cant overwrite in sub class without its proper defination.

2 Answers   TCS,


Categories