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.

abcd

Computer Science & Information Technology

You might also like to view...

Which of the following is NOT a step you must take to require users to log in before they can view pages? ____

A. Create a table in the database that holds usernames and passwords. B. Allow users to create their own login pages. C. Create a page that enables users to log in to the site. D. Restrict access to the pages.

Computer Science & Information Technology

Every programming language has rules governing its word usage and punctuation.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology