Suppose myShort is a short and wrapped is a Short.
Which of the following are legal Java statements?
Choose all correct options.
A, B, C, D.
All four statements are legal.
A and C are examples of unboxing, which allows assignment from a wrapper to a primitive.
B is an example of boxing, which allows assignment from a primitive to a wrapper.
D is assignment of a literal int to a short, which is legal because the right-hand side of the assignment is a literal rather than a variable.