Thread: Quiz Time
View Single Post
  #117 (permalink)  
Old 05-12-2008, 06:51 PM
rjuyal's Avatar
rjuyal rjuyal is offline
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 160
rjuyal is on a distinguished road
Another Quiz: Constructor Vs Parsing
Code:
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
Reply With Quote