Can try statements be nested?

Answer Posted / manikandansit

yes we can.

class test
{
public static void main(String []adsfdasf)
{
try
{
try
{

}catch(Exception e)
{

}
}catch(Exception e)
{

}
}
}

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are data types in programming?

546


What is a container in a gui?

545


How do you change an int to a string?

543


Can we access the non-final local variable, inside the local inner class?

513


Can a string be null?

538






How are multiple inheritances done in Java?

618


Why are generics used?

518


What are triggers in DB? Explain their types. How do they work?

621


Can a class extend 2 classes in java?

554


Explain different forms of polymorphism?

649


Why main method is called first in java?

541


What is vector?

584


What is an error in java?

636


Why java is object oriented?

584


Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

617