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
Will minecraft java be discontinued?
What do you understand by a Static Variable?
How does singleton class work?
What are predefined functions?
What is the type of lambda expression?
Can we initialize the final blank variable?
What is difference between word and integer?
Why charat is used in java?
What is java util hashmap?
Why do we need data structure in java?
What function extracts specified characters from a string?
What are meta-annotations?
Write a program to print fibonacci series up to count 10.
What is static synchronization?
What is the format specifier?