How can we throw user defined exception in try catch block ??
sth like:
try {
System.out.println("Hello " + args[0]);
}
catch (ArrayIndexOutOfBoundsException e) {
throw new Exception (" Error.");
}
Is it possible ?
sth like:
try {
System.out.println("Hello " + args[0]);
}
catch (ArrayIndexOutOfBoundsException e) {
throw new Exception (" Error.");
}
Is it possible ?