What are Wrapper Classes in JAVA ?

Ans:- the predefined classes from java.lang package which are used to make primitive data types available in the form of objects are known WrapperClasses.

The following are the list of WrapperClasses:-

Data TypeWrapperClass
ByteByte(byte),Byte(String)
ShortShort(short),Short(String)
IntegerInteger(int),Integer(String)
LongLong(long),Long(String)
FloatFloat(float)
DoubleDouble(double)
CharacterCharacter(character)
BooleanBoolean(boolean)

Leave a Reply

Your email address will not be published. Required fields are marked *

*