This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hi As we know that-- True,TRUE are wrapper Boolean values.
First see code: boolean b=TRUE;//line 1
Boolean b2=true; //line 2
Now my question is that as in line 2, true value (i.e. primitive value) boxed into wrapper value and then assign to wrapper variable b2.But why not in line 1,True value (that is wrapper value) unboxed to primitive value and then assign to primitive variable.