Example code uncheckedExceptions
package exceptions;
public class Unchecked {
public static void main(String ar[])
{
//below code rise the ArithmeticException,which is runtimeexception
//compiler will allow you with out error in case of unchecked.
System.out.println(10/0);
}
}
0 comments:
Post a Comment