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

Explain the difference between jvm and jre?

824


Which keyword specify that a variable is effectively final ?

805


Which variables are stored in stack?

700


Is array synchronized in java?

846


What is the difference between object oriented programming language and object based programming language?

798


Can we start a thread twice in java?

740


Which of the classes will have more memory allocated?

766


Explain OOPs concept.

876


when should you use stringbuilder class in a program?

756


What is join () in java?

766


What is difference between filereader and bufferedreader?

759


What is append function?

794


How many types of voids are there?

774


What are computer functions?

736


Why is string builder not thread safe?

865