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);

}



ublic class Java_Coding_Samples { public static void JavaHungr(NumberFormatException ae){ ..

Answer / sasi

object.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an <applet> tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

0 Answers   TCS,


Explain illegalmonitorstateexception and when it will be thrown?

0 Answers  


What is bom encoding?

0 Answers  


what is the difference between a threads start() and run() methods? : Java thread

0 Answers  


Can I declare class as static or private?

0 Answers  






What is serializable interface?

13 Answers   Infosys, Probity Soft, Seed Infotech,


describe synchronization in respect to multithreading? : Java thread

0 Answers  


what is the difference between Object Based Language and Object Oriented Language?

0 Answers   Aspire,


What is classpath?

0 Answers  


What is data object example?

0 Answers  


What’s the difference between callable and runnable?

0 Answers  


What is java in detail?

0 Answers  


Categories