Which declarations, when inserted at (1), will result in the program compiling and printing 90 at runtime?

Question:

Which declarations, when inserted at (1), will result in the program compiling and printing 90 at runtime?

image text in transcribed

Select the two correct answers.

(a) Object[] nums = {20, 30, 40};

(b) Number[] nums = {20, 30, 40};

(c) Integer[] nums = {20, 30, 40};

(d) int[] nums = {20, 30, 40};

(e) None of the above

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: