example how to use try with finally with out catch
package exceptions;
public class TryFinally {
public static void main(String arg[])
{
try
{
System.out.println("try");
}
finally
{
System.out.println("finally");
}
}
}
output:
try
finally
0 comments:
Post a Comment