In JDK 1.5, analyze the following code.

```
Line 1: Integer[] intArray = {1, 2, 3};
Line 2: int i = intArray[0] + intArray[1];
Line 3: int j = i + intArray[2];
Line 4: double d = intArray[0];
```
a. It is OK to assign 1, 2, 3 to an array of Integer objects in JDK 1.5.
b. It is OK to automatically convert an Integer object to an int value in Line 2.
c. It is OK to mix an int value with an Integer object in an expression in Line 3.
d. Line 4 is OK. An int value from intArray[0] object is assigned to a double variable d.


a. It is OK to assign 1, 2, 3 to an array of Integer objects in JDK 1.5.
b. It is OK to automatically convert an Integer object to an int value in Line 2.
c. It is OK to mix an int value with an Integer object in an expression in Line 3.
d. Line 4 is OK. An int value from intArray[0] object is assigned to a double variable d.

Computer Science & Information Technology

You might also like to view...

Which of the following is a font effect?

A) Contrast B) Small caps C) Brightness D) Scale

Computer Science & Information Technology

Describe the steps to set or remove a file attribute

A) Open Device Manager, select the Properties option, and the Properties window opens. Toward the bottom of the window is an Attributes section. Click inside one or more of the attribute check boxes to enable or disable an attribute. B) Use Windows/File Explorer to locate the file or folder. Right-click the file or folder name. Click the Properties option and the Properties window opens. Toward the bottom of the window is an Attributes section. Click inside one or more of the attribute check boxes to enable or disable an attribute. C) Use Windows/File Explorer to locate the file or folder. Left-click the file or folder name. Click the Properties option and the Properties window opens. Toward the bottom of the window is an Attributes section. Click inside one or more of the attribute check boxes to enable or disable an attribute. D) Use the Network option within Windows/File Explorer to locate the file or folder. Double-click the file or folder name. Click the Properties option and select File Attribute. Click inside one or more of the attribute check boxes to enable or disable an attribute.

Computer Science & Information Technology

A data ______ is a stored collection of related records.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What tip is not for targeting Android TV devices?

a. Android TV applications should target resolutions of 1920 x 1080 pixels. b. Android TV devices need only landscape-oriented layouts. c. Make sure your application implements the channel up and channel down buttons. d. Certain hardware and software features (sensors, cameras, telephony, and so on) are not available on Android TV devices so don’t try accessing them.

Computer Science & Information Technology