Are nested try statements are possible?
Answers were Sorted based on User's Feedback
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 |
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 |
Which collection is thread safe in java?
what are variables in java
Can we cast any other type to boolean type with type casting?
Do you know why doesn't the java library use a randomized version of quicksort?
What is CardLayout?
Explain the differences between public, private, protected and static?
what is anonymous class in java?
Explain what is Marker interface?
What is the purpose of methodology?
What is a condition in programming?
Why to give the file name same as the public class name in java?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?