Question: Consider the following code. Please select all that apply. Line 1 : Integer [ ] intArray = { 1 , 2 , 3 } ;
Consider the following code. Please select all that apply.
Line : Integer intArray ;
Line : int i intArray intArray;
Line : int j i intArray;
Line : double d intArray;
Line is OK An int value from intArray object is assigned to a double variable d
It is OK to mix an int value with an Integer object in an expression in Line
It is OK to automatically convert an Integer object to an int value in Line
It is OK to assign to an array of Integer objects since JDK
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
