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
What is contractor means and methods?
What is the implementation of destroy method in java. Is it native or java code?
Does the order of public and static declaration matter in main method?
What is the relationship difference the canvas class and the graphics class?
What are parsers? Dom vs sax parser.
Is null a string or object in java?
Difference between overriding and overloading in java?
What are the properties of thread?
What do you understand by the term singleton?
Is there any case when finally will not be executed?
What is the purpose of void?
Is the empty set a singleton?
Is final static java?
What is an immutable class?
How many decimal digits is 64 bit?