Consider the following code fragment The second statement is
Consider the following code fragment.
The second statement is an example of which of the following?
| auto-unboxing |
Solution
Answer: auto-unboxing
Above statements are example of auto-unboxing
If we converted the types from Corresponding Object to privitive types then we can call it as auto-unboxing
If we converted the types from primitive types to corresponding objects then we can call it as auto-boxing.
in our case, we are converting Integer object to int primitive types.
