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
Can a class have a static inner class?
Is linkedlist thread safe in java?
What is currentthread()?
Can we define static methods inside interface?
Explain about class in java?
Write a program in java to find the maximum and minimum value node from a circular linked list.
What is tcp ip in java?
Can we override the private methods?
Explain about static imports in java?
What interface is extended by awt event listeners?
What method is used to specify a container's layout in java programming?
What is a java object and java application?
What is the purpose of skeleton and stub?
Can we create object of static class?
How to provide security in java