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 37 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


tkempin

  • Member
  • Posts: 332
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Most fungi that pathogenically affect humans live in soil. If a person is not healthy, has an open wound, or is immunocompromised, a fungal infection can be very aggressive.

Did you know?

Urine turns bright yellow if larger than normal amounts of certain substances are consumed; one of these substances is asparagus.

Did you know?

The horizontal fraction bar was introduced by the Arabs.

Did you know?

Multiple sclerosis is a condition wherein the body's nervous system is weakened by an autoimmune reaction that attacks the myelin sheaths of neurons.

Did you know?

Warfarin was developed as a consequence of the study of a strange bleeding disorder that suddenly occurred in cattle on the northern prairies of the United States in the early 1900s.

For a complete list of videos, visit our video library