Invoking _________ returns the number of the elements in an ArrayList x.

a. x.getSize()
b. x.getLength(0)
c. x.length(1)
d. x.size()


d

Computer Science & Information Technology

You might also like to view...

When viewing the interface status, the Method field indicates which of the following?

A) The interface was brought up using tftp. B) How the interface was brought up. C) The interface was brought up manually. D) The interface is exchanging Keepalive packets. E) None of these answers are correct.

Computer Science & Information Technology

Keywords public and private are called ________.

a) member-access modifiers b) privacy modifiers c) security modifiers d) class modifiers e) type modifiers

Computer Science & Information Technology

A stack is a FIFO list.

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

Computer Science & Information Technology

Given the function prototype and variable declarations, which of the following is a valid function call?

void tryOut ( int, char, int&, float&); // function prototype int a = 4, b = 0; //variable declarations float y; char c; a) tryOut (3, ‘a’, 5, y); b) tryOut (a, c, a * b, y); c) tryOut (8, ‘t’, b, 7.8); d) tryOut (a + b, ‘b’, b, y);

Computer Science & Information Technology