The method ___________ can be used to determine the number of elements in an ArrayList.

(a) length()
(b) vectorLength()
(c) size()
(d) vectorSize()

(c) size()

Computer Science & Information Technology

You might also like to view...

Which of the following expressions has as its value the value of strVar with its leading and trailing spaces removed?

(A) strVar.Length (B) strVar.ToUpper (C) strVar.Ctrim (D) strVar.Trim

Computer Science & Information Technology

Answer the following questions true (T) or false (F)

1. The least common error in using an array is a subscript range error. 2. The assignment operator = can be used for string assignment only when initializing a string variable in its declaration. 3. If "cat" is the value of the string variable str, then str[3] is the null character.

Computer Science & Information Technology