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);

}



ublic class Java_Coding_Samples { public static void JavaHungr(NumberFormatException ae){ ..

Answer / sasi

object.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the middleware?

2 Answers  


What is a method in java?

0 Answers  


What is instance example?

0 Answers  


Which class is extended by all other classes?

4 Answers  


How can we create a object of a class without using new operator.

1 Answers   Infosys, Nokia,






Can a hashset contain duplicates java?

0 Answers  


what methods would you overwrite in java.lang.object class?

0 Answers  


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

0 Answers   Genpact,


What are the differences between this and super keyword?

0 Answers  


what is difference betwwen hashmap and hashtable ?

7 Answers   Fidelity,


Do extraneous variables affect validity?

0 Answers  


How is string stored in java?

0 Answers  


Categories