posted 22 years ago
Narasimha,
Is it possible that you intended to cut and paste the following question instead of the one that appears in your post?
If so, then it is because the method
public static Boolean valueOf(boolean b)
was introduced in version 1.4 so those that are using an earlier version will get a compiler error.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>