0

Why wrapper classes are needed? When do we need to convert variables in object?

While learning Java I learnt about wrapper classes like number class. These classes are needed to convert variables into objects and vise versa. But what I didn't understand was that why and when do we need to convert variables in object?

9th Feb 2017, 2:27 PM
Ravindra Zemse
Ravindra Zemse - avatar
1 Odpowiedź
0
One use would be to pass them to JSON files (which are taking objects).
9th Feb 2017, 3:57 PM
Lumpenstein
Lumpenstein - avatar