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 string value?
How many return statement are allowed in a function?
why we use merge option in hybernate pls give a ex snippet
What are different access specifiers in java? Explain
What is jrmp?
What happens when heap memory is full?
What is the purpose of a default constructor?
What is meant by class and object in java?
What is close method? How it's different from Finalize & Dispose?
State the difference between strings and arrays.
What is anti pattern in programming?
What is bigger kb or mb?
What is time complexity java?
What are inbuilt functions in java?
Explain about static nested classes in java?