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 |
Explain the reason behind ending a program with a system.exit(0)?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What is fail first in java?
How does the garbage collector works in java?
How to do encapsulation in java?
What is nextline method in java?
Explain the importance of thread scheduler in java?
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?
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
can u override the start() method of Thread class
what is platform
Are there structures in java?