Which primitive data type does not have a wrapper class?

The eight primitive data types byte, short, int, long, float, double, char and boolean are not objects, Wrapper classes are used for converting primitive data types into objects, like int to Integer etc. Lets take a simple example to understand why we need wrapper class in java.

Sizin İçin Seçtik  What is a method's signature?

Leave a Reply

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