Which method do you use to find the number of elements in a set or list named x?

a. x.length()
b. x.count()
c. x.counts()
d. x.size()
e. x.sizes()

d The size method defined in the Collection interface returns the number of elements in the collection (set or list)

Computer Science & Information Technology

You might also like to view...

Which traffic-shaping parameter is a measure of the average number of bits transmitted during a timing interval?

a. CIR b. Tc c. Bc d. Be

Computer Science & Information Technology

XQuery comments can be nested within one another to provide more information to the user.

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

Computer Science & Information Technology