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 does this () mean in java?

547


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

600


Is it possible to write a regular expression to check if string is a number?

543


What are inner classes or non static nested classes in java?

707


java program with complete 4 oops concepts implemented example

2730






What is core java used for?

517


What is primitive array?

522


Can inner class have constructor?

550


Can we synchronize static methods in java?

600


What does string intern() method do?

589


Describe the term diamond problem.

575


Which api is provided by java for operations on set of objects?

914


What are new features introduced with java 8 ?

552


Why synchronization is important?

589


What is a byte string?

623