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 |
Functionality of JVM?
Can we create constructor in abstract class ?
Can we have a method name same as class name in java?
Explain pass by reference and pass by value?
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?
What is string length in java?
Can we restart a thread already started in java?
What is the function of compareto in java?
Can u write constructor in abstract.If yes den when it will be invoked.
What is the final keyword denotes?
What is Java Annotations?
what are class,constructor and primitive data types?