Results 1 to 2 of 2
  1. #1
    maheshkanda's Avatar
    maheshkanda is offline Member
    Join Date
    Feb 2009
    Rep Power

    Question What are wrapper classes?

    What are wrapper classes?
    Wrapper classes are classes that allow primitive types to be accessed as objects.
    I have this much knowledge about them will any one explain it to me in details with some examples please

  2. #2
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Rep Power


    primitives are fine for use in arrays, but when using containers that can only contain objects, wrapper classes come in handy.

    Example: ArrayList cannot hold ints, but can hold Integers.

Similar Threads

  1. pointers and wrapper classes
    By becky in forum New To Java
    Replies: 11
    Last Post: 02-07-2009, 04:59 AM
  2. Wrapper Class
    By haiforhussain in forum New To Java
    Replies: 6
    Last Post: 06-24-2008, 08:08 AM
  3. Secure FTP Wrapper 3.0.2
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 04-29-2008, 06:05 PM
  4. wrapper classes
    By sireesha in forum New To Java
    Replies: 5
    Last Post: 12-11-2007, 10:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts