Question: The following code: Integer myInt = 5; Correct because it is auto-boxing. Incorrect because you cannot assign an int to Integer object. Syntax error. Correct
The following code:
Integer myInt = 5;
| Correct because it is auto-boxing. |
| Incorrect because you cannot assign an int to Integer object. |
| Syntax error. |
| Correct because it is auto-unboxing.
The following statement: Double dObj = new Double(3.4); double x = dObj;
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
