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 is public static?

496


Using callable statement how can you pass out parameters, explain with example?

581


Can we restart a thread already started in java?

580


What do you mean by platform independence of Java?

530


What are adapter classes?

597






What is type safety in java?

480


Does substring start with 0?

550


Is there any limitation of using inheritance?

569


What are the important features of Java 10 release?

508


Define reflection.

575


Can inner class final?

631


why java uses class level type casting ?

2251


Describe the syntax of multiple inheritance? When do we use such an inheritance?

582


Can we use String with switch case?

660


How do you format in java?

545