ublic class Java_Coding_Samples {
public static void JavaHungr(NumberFormatException ae){
System.out.println("integer");
}
public static void JavaHungry(Exception e){
System.out.println("string");
}
public static void JavaHungry(ArithmeticException ae){
System.out.println("object");
}
public static void main(String[] args) {
JavaHungry(null);
}
Answer Posted / sasi
object.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is bytecode verifier?
why we use merge option in hybernate pls give a ex snippet
What is the purpose of using java.lang.class class?
What is the difference between arraylist and hashset in java?
When parseint method can be used?
What is application system?
What do you understand by classes in java?
Is multiple inheritance supported by java?
Can you override private or static method in java?
What is a jit compiler?
What do you mean by an interface in java?
Can you extend singleton class?
What are data structures in java?
Is c better than java?
Why can we not override static method?