When primitive data types are automatically converted into it's wrapper type, it is called boxing. The opposite operation of converting wrapper class objects to it's primitive type is known as unboxing.
ArrayList<Integer> list = new ArrayList<Integer>(); list.add(1); //autoboxing - primitive to object int number = list.get(0); // unboxing
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Can you answer this question?
Write Answer1 Answers