Given the code fragment:
Which code fragment, inserted at line n1, pints The Top element: 30?
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Given the code fragment:
Which code fragment, inserted at line n1, pints The Top element: 30?
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
C
C
C:
# javac Test31.java
# java Test31
The Top element: 30
———-
important here to remember that indexes of arrays in Java start from 0, so array in example will have elements with indexes 0,1,2
Definitely C
C