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
Why stringbuilder is not thread safe?
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
Which browsers work with java?
What is parsing a sentence?
What is implicit object in java?
What is the Scope of Static Variable?
What restrictions are placed on method overriding?
How do you convert boolean to boolean?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is a methodologist?
What is ‘is-a ‘ relationship in java?
what is object slice?
What is a variable declaration?
Why are generics used?
Is c better than java?