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);
}
what is features of jdk 1.5?
2 Answers Accenture, Satyam, TCS,
what is main difference b/w abstract class and interface
Is sizeof a preprocessor?
HOW TO PRINT A NO IN WORDS USING WHILE LOOP THE NO WILL BE PRINTED WHEN IT WILL BE IN THE RANGE BETWEEN 1 AND 3?
What is the difference between normal report & matrix report?
which method throws exception of type Throwable
where exactly collections are usefull in realtime
What is the purpose of the finalize() method?
they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } }
2 Answers DNS, IPSR Solutions,
How to access arraylist elements in java?
What is an immutable class?
Does java trim remove newline?