Neo
Pages
Home
C
Tuesday, April 24, 2018
Exception Example in Java
Exception Example in Java
class ExceptionTest
{
public static void main(String[] v)
{
try
{
int a[]=new int[5];
a[4]=10;
System.out.println("Exception Test");
}
catch(Exception e)
{
System.out.println(e);
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment