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 41 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
Thanks for the timely response, appreciate it


sarah_brady415

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

 

Did you know?

In 1864, the first barbiturate (barbituric acid) was synthesized.

Did you know?

After 5 years of being diagnosed with rheumatoid arthritis, one every three patients will no longer be able to work.

Did you know?

In most cases, kidneys can recover from almost complete loss of function, such as in acute kidney (renal) failure.

Did you know?

More than 4.4billion prescriptions were dispensed within the United States in 2016.

Did you know?

Medication errors are three times higher among children and infants than with adults.

For a complete list of videos, visit our video library