Suppose List list = new ArrayList(). Which of the following operations are correct?

a. list.add("Red");
b. list.add(new Integer(100));
c. list.add(new java.util.Date());
d. list.add(new ArrayList());


abcd

Computer Science & Information Technology

You might also like to view...

Which of the following correctly declares a dynamic array of strings?

a. p1 = new string(13); b. p1 = new string[]; c. p1 = new string[13]; d. p1 = new stringArray(13);

Computer Science & Information Technology

To guard against data loss, it is good practice to have the same record in more than one table

Indicate whether the statement is true or false

Computer Science & Information Technology

During a mail merge creating form letters, the ________ contains the text that remains constant in all of the letters

A) placeholder text B) data source C) main document D) prototype

Computer Science & Information Technology

An array subscript cannot be less than 1. _________________________

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

Computer Science & Information Technology