There are situations, for example when you try fill in a collection or
when you need to apply some methods, when u need to have an Object
instead of a primitive type. That's when wrapper classes like Integer,
Long, Character, Short, Double, Float come in game.

On Jun 18, 6:14 am, Moses <[email protected]> wrote:
> Hello,
>
> Could someone please help me understand the purpose of creating
> objects of Integer and String class. What purpose is there is doing
> this?
>
> Thank-you.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to