+ 8

Why do we need a wrapper class?

I don't get the concept of wapper class in java.

25th Jan 2017, 3:39 AM
Saumya
Saumya - avatar
5 Respuestas
+ 7
Thanks.
25th Jan 2017, 6:35 PM
Saumya
Saumya - avatar
+ 7
@Sofyan Maulana, really sorry, I saw your comment just now. I have been inactive for many days.
4th Mar 2017, 7:14 AM
Saumya
Saumya - avatar
+ 1
You have your primitives: int, float, etc. They are containers that store a type of data but sometimes it's important to be able to use methods on them. Wrapper class Integer gives you methods to work on an int variable. Primitives are not exactly objects until you use a wrapper class.
25th Jan 2017, 6:19 AM
Brian
+ 1
Saumya.. i need your answer on my question please T_T
1st Mar 2017, 5:37 PM
Sofyan Maulana
Sofyan Maulana - avatar
- 4
https://chat.whatsapp.com/5WTyd67SIkr0Djoyp64Y9v join this wts app link we will help u in coding
25th Jan 2017, 2:53 PM
Vansh Surkhali