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

Author Question: Which of the following can be used to replace YYYYYYYY in the following code? public class ... (Read 38 times)

j.rubin

  • Hero Member
  • *****
  • Posts: 557

Question 1

Is ArrayList same as ArrayList?
◦ Yes
◦ No

Question 2

Which of the following can be used to replace YYYYYYYY in the following code?

public class WildCardDemo3 {
public static void main(String[] args) {
GenericStack stack1 = new GenericStack();
GenericStack stack2 = new GenericStack();
stack2.push("Java");
stack2.push(2);
stack1.push("Sun");
add(stack1, stack2);
WildCardDemo2.print(stack2);
}

public static void add(GenericStack stack1,
GenericStack stack2) {
while (!stack1.isEmpty())
stack2.push(stack1.pop());
}
}

◦ ? super Object
◦ ? super T
◦ ? extends Object
◦ ? extends T


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by j.rubin on May 6, 2020

ricroger

  • Sr. Member
  • ****
  • Posts: 352
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 39% of students answer this correctly




j.rubin

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


blakcmamba

  • Member
  • Posts: 335
Reply 3 on: Yesterday
Excellent

 

Did you know?

The heart is located in the center of the chest, with part of it tipped slightly so that it taps against the left side of the chest.

Did you know?

Never take aspirin without food because it is likely to irritate your stomach. Never give aspirin to children under age 12. Overdoses of aspirin have the potential to cause deafness.

Did you know?

All adverse reactions are commonly charted in red ink in the patient's record and usually are noted on the front of the chart. Failure to follow correct documentation procedures may result in malpractice lawsuits.

Did you know?

In the United States, an estimated 50 million unnecessary antibiotics are prescribed for viral respiratory infections.

Did you know?

Opium has influenced much of the world's most popular literature. The following authors were all opium users, of varying degrees: Lewis Carroll, Charles, Dickens, Arthur Conan Doyle, and Oscar Wilde.

For a complete list of videos, visit our video library