Given the code fragment:
What is the result?
A. (green, red, yellow, cyan)
B. (green, blue, yellow, cyan)
C. (green, red, cyan, yellow)
D. An IndexOutOfBoundsException is thrown at runtime.
Given the code fragment:
What is the result?
A. (green, red, yellow, cyan)
B. (green, blue, yellow, cyan)
C. (green, red, cyan, yellow)
D. An IndexOutOfBoundsException is thrown at runtime.
A
A & [green, red, yellow, cyan]
A:
# javac Test20.java
# java Test20
[green, red, yellow, cyan]
A
A, not C
A