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());
}
}
```
a. ? super Object
b. ? super T
c. ? extends T
d. ? extends Object


b

Computer Science & Information Technology

You might also like to view...

____ methods include people-based solutions such as foot patrols and closed-circuit TV surveillance.

A. Intrusion elimination B. Intrusion diversion C. Intrusion detection D. Intrusion misdirection

Computer Science & Information Technology

The ________ message is sent when a child exits.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What type of bus successfully best handles digital audio and video devices such as cameras, video recorders, and television?

A) IEEE 1394 B) AGP C) PCI D) MCA

Computer Science & Information Technology

An artist known for his use of monochromatic painting is ____________.

a. Picasso b. Seurat c. Albers d. Rothko

Computer Science & Information Technology