Are nested try statements are possible?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the default and parameterized constructors?

800


How do you escape sequences in java?

811


What is a map in java?

755


What are examples of modifiers?

725


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

776


What is difference between java and java ee?

764


What is the use of protected in java?

753


Are variables stored in ram?

771


How do you reverse a string in java?

852


How do you define a variable?

733


How do you convert string to int in java?

772


What is a conditional statement explain with example?

764


Explain the advantages of packages in java?

713


What is compareto?

744


Can a hashset contain duplicates java?

704