Wrapper class

Character class in Java

In java.lang package, Java includes a wrapper class called Character. A single field of type char is contained in a…

2 years ago

Boolean class in Java

In java.lang package, there is a wrapper class Boolean. A value of the primitive type boolean is wrapped in an…

2 years ago

Double class in Java

The Double class is a wrapper class for the primitive type double. It contains several methods for dealing with double…

2 years ago

Float class in Java

The Float class is a wrapper class for the primitive type float. It contains several methods for dealing with float…

2 years ago

Short class in Java

The Short class is a wrapper class for the primitive type short. It contains several methods for dealing with short…

2 years ago

Byte Class in Java

The Byte class creates an object out of a primitive type byte value. An object of type Byte has a…

2 years ago

Wrapper Class in Java

A Wrapper class is one whose object contains or wraps primitive data types. When we create an object for a…

2 years ago

Autoboxing and Unboxing in Java

Primitive data types are handled differently in Java, which led to the development of wrapper classes, which include the components…

2 years ago