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
What is thread pool? How can we create thread pool in java?
Why string is not thread safe?
how would you implement a thread pool? : Java thread
What is the difference between a field variable and a local variable?
What is parameters example?
What are the escape sequences in java?
What is singleton class in ruby?
How many functional interfaces does java 8 have?
How many bits is size_t?
How is string immutable in java?
Is hashset sorted in java?
How do you avoid global variables?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
In java, how many ways you can take input from the console?
What is r * in math?