How can we use primitive data types as objects?

The primitive data types are not objects so they do not belong to any class. While storing in data structures which support only objects, it is required to convert the primitive type to object first which we can do by using wrapper classes .

Sizin İçin Seçtik  Should I use primitive types in Java?

Leave a Reply

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