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
explain multi-threading in java?
What is the difference between stream and buffer?
What are the four versions of java?
What carriage return means?
What is meant by tab pans?
what is the significance of listiterator in java?
Explain heap sort?
What is a instance variable?
What are the library functions in java?
What is a local class in java?
Is age a discrete variable?
what is object slice?
Explain the importance of join() method in thread class?
Will the jvm load the package twice at runtime?
What is the reason behind using constructors and destructors?