Welcome Guest | Sign in | Register
Collections - Discussion Page For Q.2563 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Collections > Questions and Answers

Q: If we do
ArrayList lst = new ArrayList();

What is the initial capacity of the ArrayList lst ?
A. 10 B. 8
C. 15 D. 12

Answer and Explanation

Answer:10

Explanation:
Array List constructs an empty list with an initial capacity of ten.

public ArrayList(){
this(10);
}

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.