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 run-time class and system class? what is their purpose?

1 Answers  


What is singleton class in ruby?

0 Answers  


What is the maximum length of a url?

0 Answers  


Is Java a dying language?

0 Answers  


Can static methods access instance variables in java?

0 Answers  


What is the purpose of a statement block?

1 Answers  


What does function identity () do?

0 Answers  


What are the performance implications of interfaces over abstract classes?

1 Answers  


What is the association?

0 Answers  


What does the string method compareto () do?

0 Answers  


what is struts-config-xml?and its use?

3 Answers  


What is method overriding in java ?

0 Answers  


Categories