This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Vidhya, You would be using Java 5. So in Java 5 it automatically wraps the int literal i1 into the wrapper class(Integer here) object(autoboxing). Whereas if you try this in Java 4 it will throw an error unless you give new to it. Thanks.