Java 6 API primitive type wrappers have pairs of static methods decode(String s) and valueOf(String s). Both of them return a new object of wrapper class type and none of them are annotated as deprecated. Does someone know the difference between them? For example:
Byte b1 = Byte.decode("10");
and
Byte b2 = Byte.valueOf("10");