Are nested try statements are possible?

Answers were Sorted based on User's Feedback



Are nested try statements are possible?..

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

Are nested try statements are possible?..

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

Post New Answer

More Core Java Interview Questions

Can we override final method?

0 Answers  


how to execute main()

4 Answers   Symphony, TCS,


Give me an example of array and linked list? Where they can be used?

0 Answers   Ericsson,


Can we use a default constructor of a class even if an explicit constructor is defined?

0 Answers  


when should you use stringbuilder class in a program?

0 Answers  






What is a buffer in computer?

0 Answers  


How does Vector implement synchronization?

4 Answers   Ness Technologies,


What is the diffrence between inner class and nested class?

0 Answers  


What is method Overloading in the perspective of OOPS?

6 Answers  


what are the differences between java and .net?..why u choose java?

1 Answers  


Program to Find the second largest element in an array.

0 Answers   Amazon,


What is lambda programming?

0 Answers  


Categories