+ 3

What is autoboxing and unboxing in java?

20th Jul 2017, 4:28 PM
Viraj Singh
Viraj Singh - avatar
2 Respostas
+ 9
There are some wrapper classes like Integer, Float, Double and so on. Also you must be familiar with the primitive types like int, float, double which are frequently used. Autoboxing allows us to covert the primitive type into wrapper type without changing the value, and unboxing does the opposite. You can refer the following code for example: https://code.sololearn.com/cGGNeeHI2igq/?ref=app
20th Jul 2017, 6:33 PM
Shamima Yasmin
Shamima Yasmin - avatar