Type 03 Flashcards

1
Q

What is meant by auto-boxing and unboxing?

A

Autoboxing is the conversion of primitive data types into its equivalent wrapper type. Unboxing is the opposite.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Advantage of Autoboxing and Unboxing:

A

No need of conversion between primitives and Wrappers manually so less coding is required.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly