Can try statements be nested?

Answer Posted / devarathnam

Hi... yes ,"try" statements can be nested, but each try
must be having the one "catch" statement.Without "catch"
and "finally" statements ,"try" statement will be illegal

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the principle concepts of oops?

539


Is nan false?

537


What is the ==?

471


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

529


Can we have a try block without catch block?

571






What is default exception handling in java?

577


Is java an ide?

528


What does bitwise or mean?

571


Is empty .java file name a valid source file name?

590


What is a stringbuilder?

513


What is unicode in java?

509


What are the 6 boolean operators?

554


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

580


What is string example?

597


What is the difference between a factory and abstract factory pattern?

687