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

Give some features of interface?

829


Difference between string s= new string (); and string s = "abv";?

994


What are the actions that can occur when a thread enters blocked state?

824


What are the basic interfaces of java collections framework?

849


What are functions in java?

723


How do you remove an object from an arraylist in java?

677


Is hashmap thread safe?

775


What occurs when an object is constructed?

783


How many functional interfaces does java 8 have?

815


How does multithreading take place on a computer with a single cpu?

790


What kind of variables a class can consist of?

861


Can you sort a list in java?

745


What is the base class of all exception classes in java?

808


What is try-with-resources in java?

863


Define array. Tell me about 2-D array.

825