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

Explain the reason behind ending a program with a system.exit(0)?

0 Answers  


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

0 Answers  


What is fail first in java?

0 Answers  


How does the garbage collector works in java?

0 Answers   Cyient,


How to do encapsulation in java?

0 Answers  






What is nextline method in java?

0 Answers  


Explain the importance of thread scheduler in java?

0 Answers  


How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program?

1 Answers   Huawei,


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

0 Answers  


can u override the start() method of Thread class

5 Answers  


what is platform

2 Answers   i3 Solutions,


Are there structures in java?

0 Answers  


Categories