Answer Posted / k.k
ALL ANSWERS GIVEN ABOVE ARE WRITE.........
BUT
ONLY CASE THAT CAN SUPPRESS THE FINALY BLOCK IS
public class SupressFinallyExample
{
public static void main(String args[])
{
try
{
// the code that may cause an exception
//System.exit(0);
}
catch (Exception e)
{
System.exit(0);//if exception occure..
}
finally
{
// code to be executed irrespective of the
occurrence of exception
}
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why does java not support pointers?
What is the difference between hashset and treeset in java?
What are three advantages of using functions?
How do you create a reference in java?
What are the steps that are followed when two computers connect through tcp?
What is the basic concept of java?
What is sizeof () operator?
Can size_t be negative?
What are dot operator queries?
Why string is immutable with example?
Why java is a platform independent? Explain
What are the string methods in java?
What is the difference between this() and super() in java?
Is java hashset ordered?
Is vector ordered in java?