+ 1
What is the output of this code?
ArrayList<String> list = new ArrayList<String>(); list.add("A"); list.add("B"); list.add("C"); System.out.println(list.get(0));
18 Answers
+ 6
B
+ 4
A
+ 2
You can run the code and see for yourself.
+ 2
a
+ 2
B
+ 1
a
+ 1
answer is A
+ 1
B
+ 1
B
+ 1
B
+ 1
B
+ 1
B
0
Maybe Answer is 0
0
a
0
Correct ans is B not A
0
B is correct
0
B
Because index starts from 0 and asked is 1
- 2
No