I found this question on danchisholm,which says that valueOf() method can take a primitve argument as of version 1.4
class C {
public static void main(
String[] args) {
Boolean b1 = Boolean.valueOf(true);
Boolean b2 = Boolean.valueOf(true);
Boolean b3 = Boolean.valueOf("TrUe");
Boolean b4 = Boolean.valueOf("tRuE");
System.out.print((b1==b2) + ",");
System.out.print((b1.booleanValue()==b2.booleanValue()) + ",");
System.out.println(b3.equals(b4));
}}
I learnt from K&B book that it takes a string representation of the primitve & not a primitve as such..
Can u pls clarify..