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.
in above code there are two cases of boxing in case 1: Integer is converted to int at line 7 due to which if returns true.So there is no doubt. But in case 2: if loop is making comparsion between int and Long(object) at line 13 why if loop returns true. i have a doubt in case 2.