Computer Science, asked by kadamsidharth8, 6 months ago

Q8
Consider the following program.
class Test {
public static void main(String args[]) {
ArrayList list = new ArrayList();
list.add("A");
list.add("B");
list. ensureCapacity (3);
list.trimtosize();
System.out.println(list.size());
}
}



Which of the following is an output of the above program?
a. 1
b. 2.
c. 3
d. 4
a.​

Answers

Answered by sibaprasad55
1

Answer:

option c is 101 percent correct answer

Explanation:

please mark me brainlist and follow me in brainly

Similar questions