Originally posted by Ram Sank,:
Does this mean that we have to know all the Wrapper classes by heart for SCJP ?
The constructors of the wrapper classes must be memorized and some of the methods must be memorized. For example, the methods inherited from the abstract Number class must be memorized: byteValue, shortValue, intValue, longValue, floatValue, and doubleValue. Each wrapper has a method such as Byte.parseByte, Short.parseShort, Integer.parseInt, etc. All of the parseXxx methods must be memorized. Each wrapper has a static valueOf method that returns an instance of the wrapper class. All of those must be memorized. You must also know how to use the toString and toHexString methods.
You will need to know what arguments are accepted by each of the above methods and you will need to know which of the methods are static and which are instance methods.
You do NOT need to memorize the decode of the integral wrapper types.
You must also remember that the wrapper classes override the equals and hashcode methods.
Remember that the boolean literals are true and false and not upper case TRUE and FALSE. Remember that Boolean.TRUE and Boolean.FALSE are not primitives but are instances of wrappers.
The next version of my exam will be uploaded in a few days. I have added a very large number of questions covering the above topics.
[ November 27, 2002: Message edited by: Dan Chisholm ]