|
|
|
1000 Java Tips ebook
|
|
 

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!. |
|
Question: Why do we need wrappers like Integer, Boolean for int, boolean in Java
|
JavaFAQ Home » Daily Tips

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 Printer Friendly Page
Send to a Friend
..
Search here again if you need more info!
|
|
|