0 votes
in JAVA by
What are wrapper classes?

1 Answer

0 votes
by

Wrapper classes are classes that allow primitive types to be accessed as objects. In other words, we can say that wrapper classes are built-in java classes which allow the conversion of objects to primitives and primitives to objects. The process of converting primitives to objects is called autoboxing, and the process of converting objects to primitives is called unboxing. There are eight wrapper classes present in java.lang package is given below.

Primitive Type Wrapper class

boolean Boolean

char Character

byte Byte

short Short

int Integer

long Long

float Float

double Double

Related questions

+1 vote
asked Jun 17, 2019 in JAVA by reins.robin
0 votes
asked May 2, 2021 in JAVA by sharadyadav1986
...