Computer Science, asked by kusum2918, 8 months ago

Why do we need wrapper classes at all when we already have various primitive data types to hold in process values of different types?​

Answers

Answered by ramandeepkaur4551
0

Answer:

Need of Wrapper Classes

They convert primitive data types into objects. Objects are needed if we wish to modify the arguments passed into a 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.

Similar questions