what is wrapper calss .where can we use wrapper class in java.give me one example?
Jump to Post
a Wrapper class is a class that 'Wraps' a primitive datatype in a (sort-of) equivalent Object type.
primitive int -> Wrapperclass Integer.
each primitive type has a Wrapper class that allows the user to treat variables of primitive types (or at least, their Wrapped versions) as objects.
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.