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


abro1885

  • Member
  • Posts: 337
Reply 3 on: Yesterday
Wow, this really help

 

Did you know?

Autoimmune diseases occur when the immune system destroys its own healthy tissues. When this occurs, white blood cells cannot distinguish between pathogens and normal cells.

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?

Allergies play a major part in the health of children. The most prevalent childhood allergies are milk, egg, soy, wheat, peanuts, tree nuts, and seafood.

Did you know?

In women, pharmacodynamic differences include increased sensitivity to (and increased effectiveness of) beta-blockers, opioids, selective serotonin reuptake inhibitors, and typical antipsychotics.

Did you know?

Certain topical medications such as clotrimazole and betamethasone are not approved for use in children younger than 12 years of age. They must be used very cautiously, as directed by a doctor, to treat any child. Children have a much greater response to topical steroid medications.

For a complete list of videos, visit our video library