Can try statements be nested?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
How many techniques can be employed to create a string object?
Which api is provided by java for operations on set of objects?
What are methods?
What is the map interface in java programming?
What is executor memory?
What is java object name?
what is the difference between HashMap And HashTable?
What is arrays fill in java?
What are parent methods and how can you call them?
Is integer passed by reference in java?
What method is used to specify a container's layout in java programming?
Why are there no global variables in java?