Content received from: http://JavaFAQ.nu/java-article37.html


Question: Why do we need wrappers like Integer, Boolean for int, boolean in Java
Thursday, January 23, 2003 (01:00:00)

Posted by jalex

Question: Why do we need wrappers like Integer, Boolean for int, boolean in Java?
Answer: Because wrappers let us treat primitives as objects. For example, you can not add an int to Vector, but you can the instance of Integer.
P.S. It is very short answer. If you know more please send us your
explanation and we will publish it!



******************************************************************

Our older tips: March 22, 2001 - Oktober 21, 2002 read here.
All published and not published on site tips you can find here