This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by Nicholas Jordan: the orginal poster declares a byte then uses a string initializer. I would think the compiler would at least issue a warnning.
It won't. because there is two way specified in Java Docs to initialized Byte Object.
Byte Class Constructor Summary Byte(byte value) Constructs a newly allocated Byte object that represents the specified byte value. Byte(String s) Constructs a newly allocated Byte object that represents the byte value indicated by the String parameter.