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.
here we are assigning an integer directly to the byte variable
You can as long as it fits in to the size of the byte (-128 to 127). By making variable b final (i.e: you can't modify the value once assigned), compiler can make sure whether the value can fit in to a byte. Hope you got it [ October 10, 2008: Message edited by: Vijitha Kumara ]