What is the use of math abs in java?
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 modifiers are used for interface declaration?
In collection sorting comparable and comparator interface will be used..but why this two interfaces required..two will work same purpose so why there are two interfaces instead of one?when to use comparator and when to use comparable?
What causes memory leaks in java?
What class is used to create Server side object?
Difference between String and String Buffer?
Does anyone still use java?
wht is customised exception?
1 Answers Logica CMG, Novell, Prudential,
What is the purpose of return statement?
What is the protected method modifier?
Can we override a variable in java?
What do you mean by buffering?