This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
if anyone can pass on the link where boxing and auto boxing is explained clearly......if there are any tips on this by marcus green....it wuld be even more helpful....im having k&&b....i need some other link....also about regex classes and pattern matching....thanks in advance.....
autoboxing addresses the code needed to get around the difference between primitives and the Wrapper classes used to store primitives. In the past it was necessary to call a method of the wrapper class to extract the primitive value. So the following code is typical.
Note how the instance of the integer class is assigned directly to the int primitive without any need for conversion. Note that if you are using mock exams from earlier versions of Java you may find that the behaviour of JDK1.5 means the answer is �incorrect�, but that it is simply because of the effect of autoboxing.