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 |
Enlist few advantages of inheritance?
Which one of the following suits the description of a string better: derived or primitive?
What is the difference between array and array list in java?
What happens when a main method is declared as private?
22 Answers DELL, Infosys, L&T, Sun Microsystems,
Is it possible to use string in the switch case?
What is singletonlist in java?
Is it possible to instantiate the abstract class?
what is difference between length and length()?
What is the difference between getCodeBase and getDocumentBase methods?
1 Answers CS Business Services,
Can a class be a super class and a sub-class at the same time? Give example.
How do u pass data from one jsp to another jsp?
Why java does not supports multiple inheritance?