What will the following program print when compiled and run? Select the two correct answers. (a) (1)

Question:

What will the following program print when compiled and run?

image text in transcribed

Select the two correct answers.

(a) (1) will print [Anna, Ada, Bob, null].

(b) (1) will print [Anna, adA, Bob, null].

(c) (2) will print [Anna, Ada, Bob].

(d) (2) will print [Bob, Ada, Anna].

(e) The program will throw an IndexOutOfBoundsException at runtime.

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

Step by Step Answer:

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