What do you mean by Wrapper class?
Wrapper classes are used to convert any data type into an object. The primitive data types are not objects; they do not belong to any class; they are defined in the language itself. Sometimes, it is required to convert data types into objects in Java language.
In short,
Wrapper class in java provides the mechanism to convert primitive into object and object into primitive.
Wrapper classes are used to convert any data type into an object. The primitive data types are not objects; they do not belong to any class; they are defined in the language itself. Sometimes, it is required to convert data types into objects in Java language.
In short,
Wrapper class in java provides the mechanism to convert primitive into object and object into primitive.
0 comments:
Post a Comment