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


Please Help Members By Posting Answers For Below Questions

Why stringbuilder is not thread safe?

535


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

589


Which browsers work with java?

559


What is parsing a sentence?

541


What is implicit object in java?

543






What is the Scope of Static Variable?

728


What restrictions are placed on method overriding?

635


How do you convert boolean to boolean?

515


What are the methods to rectify ambiguities in the interfaces in JAVA?

586


What is a methodologist?

528


What is ‘is-a ‘ relationship in java?

586


what is object slice?

1570


What is a variable declaration?

516


Why are generics used?

518


Is c better than java?

540