Suppose prim is an int and wrapped is an Integer.
Which of the following are legal Java statements?
Choose all that apply.
Click to view the answer
A, B, C, D.
All four statements are legal, thanks to boxing and unboxing.