Your primitive data types; char, int, float, double, boolean; are not objects. Thus you can't use them in places where you must pass an object. (pass by reference not by value). So you create classes that wrap the primitive up as a field inside an object. Now you can pass the object.
On Jun 17, 9:53 pm, Moses <[email protected]> wrote: > Hello, > > Could someone please help me understand the purpose of "Wrapper" > classes. > > 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 -~----------~----~----~----~------~----~------~--~---
