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 are decalarations?
What is set in java?
What is outofmemoryerror in java?
What are adapter classes?
Explain the selection sort algorithm and state its time complexity?
What do you understand by soft reference?
What is use of set in java?
What does substring mean?
What is java lang object?
Why do we create threads in java?
What is an enumeration?
What is the benefit of lambda expressions?
What is difference between iterator access and index access?
What is jvm? How its run?
Explain the scope or life time of class variables or static variables?