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.

Consider the following code fragment. The second statement is an example of which of the following? auto-unboxing SolutionAnswer: auto-unboxing Above statements

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site