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 |
What is the Scope of Static Variable?
Explain importance of finally block in java?
What are the java ide's? Explain
What is hotjava?
Is multiple inheritance allowed in Java? Why ?
What happens when main () method is declared as private?
How is tree Mirroring implemented?
What is a ternary operator in java?
What is the purpose of stub and skeleton?
why the primitive data type have classes?
What is difference between call by value and call by reference?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?