public class FINALLY1
{
public static void main(String args[])
{
try
{
int x = 12/0;
System.out.println(x);
}
catch(ArithmeticException e)
{
System.out.println("Div by zero is not possible");
}
finally
{
System.out.println("Finally Block");
}
System.out.println("Remaining Code");
}
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.