This topic contains a solution. Click here to go to the answer

Author Question: Suppose List list = new ArrayList. Which of the following operations are correct? (Read 47 times)

Medesa

  • Hero Member
  • *****
  • Posts: 507

Question 1

Suppose List list = new ArrayList(). Which of the following operations are correct?
◦ list.add(new ArrayList());
◦ list.add(new Integer(100));
◦ list.add(new java.util.Date());
◦ list.add("Red");

Question 2

Suppose List list = new ArrayList. Which of the following operations are correct?
◦ list.add(new java.util.Date());
◦ list.add("Red");
◦ list.add(new Integer(100));
◦ list.add(new ArrayList());


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by Medesa on May 6, 2020

kilada

  • Sr. Member
  • ****
  • Posts: 311
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 50% of students answer this correctly




Medesa

  • Member
  • Posts: 507
Reply 2 on: May 6, 2020
:D TYSM


parker125

  • Member
  • Posts: 332
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

As many as 28% of hospitalized patients requiring mechanical ventilators to help them breathe (for more than 48 hours) will develop ventilator-associated pneumonia. Current therapy involves intravenous antibiotics, but new antibiotics that can be inhaled (and more directly treat the infection) are being developed.

Did you know?

Always store hazardous household chemicals in their original containers out of reach of children. These include bleach, paint, strippers and products containing turpentine, garden chemicals, oven cleaners, fondue fuels, nail polish, and nail polish remover.

Did you know?

Cutaneous mucormycosis is a rare fungal infection that has been fatal in at least 29% of cases, and in as many as 83% of cases, depending on the patient's health prior to infection. It has occurred often after natural disasters such as tornados, and early treatment is essential.

Did you know?

The shortest mature adult human of whom there is independent evidence was Gul Mohammed in India. In 1990, he was measured in New Delhi and stood 22.5 inches tall.

Did you know?

Patients who have undergone chemotherapy for the treatment of cancer often complain of a lack of mental focus; memory loss; and a general diminution in abilities such as multitasking, attention span, and general mental agility.

For a complete list of videos, visit our video library