Latest Answer: instanceOf opertaor is used to check whether the object can be casted to a specific type without throwing ClassCastException ...
(a)
Latest Answer: an exception of NumberFormat will be thrown ...
What is the output of following program ?class Test { public static void main(String args[]) { for(int i=0;i<2;i++) { System.out.println(i); } } }(a) Goes into infinite loop (b) 0,1 (c) 0,1,2 (d) None
(a)
How many String objects are created by the following statements ?String str = " a+b=10 "; trim(str) str.replace(+,-);(a) 1 (b) 2 (c) 3 (d) 4
(c)Strings are immutable. So, for each String operation, one new object is generated.
A program given using try, catch and finally and it is asked to find out which statements get executed ?
View page << Previous 1 [2]

Go Top