Why we use wrapper class instead of primitives?

Wrapper Class will convert primitive data types into objects . The objects are necessary if we wish to modify the arguments passed into the method (because primitive types are passed by value). The classes in java. util package handles only objects and hence wrapper classes help in this case also.

Sizin İçin Seçtik  Is Python good for back-end?

Leave a Reply

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