Q177
What will be the output of the following Java program? import java.util.*; class Output public static void main(String args[]) ArrayList obj = new ArrayList(); obj.add("A"); obj.add(0, "B"); System.out.println(obj.size());
A.
0
B.
1
C.
2
AnswerD.
Any Garbage Value
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board