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

What methodology can be utilized to link to a database?

510


What is the best way to findout the time/memory consuming process?

560


How do you read and print a string in java?

530


What is a boolean expression in java?

541


What is gui programming?

526






What’s a deadlock?

616


Explain the transient field modifier?

569


how to open and edit XML file in Weblogic???

1559


Does isempty check for null?

565


What are the advantages of functions?

526


Can we compare two strings in java?

568


What is the use of parseint in java?

543


What is difference between jdk,jre and jvm?

577


What is tree node in java?

532


Is hashset ordered?

557