Are nested try statements are possible?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can static method access instance variables ?

860


What does this () mean in java?

773


What is the transient keyword?

1404


Which collection is thread safe in java?

765


What is instanceof keyword?

973


What is meant by data hiding/encapsulation?

854


What do you mean by ternary operator in java?

807


What are aggregate functions explain with examples?

813


Why do we need hashmap in java?

806


What is instance synchronization?

837


Why is method overloading not possible by changing the return type in java?

807


Can you make a constructor final?

802


What is literal example?

745


Can we serialize arraylist in java?

788


What is treeset in java collection?

779