|
Another Quiz: Constructor Vs Parsing
package com.faaltu.temp;
public class IntegerTest {
public static void main(String[] args) {
System.out.println("constructor: " + new Integer("hello"));
System.out.println("parsing: " + Integer.parseInt("hello"));
}
}
what will be the output?
and as the rule say "Don't compile it, just read and try to answer"!!
__________________
Newton said Gravitaion, Rakesh says Earth Sucks
|