What will be the output for the provided Program.
import java.util.;
public class Genericstack <E> {
Stack <E> stk new Stack <E>();
public void push(E obj) {
stk.push(obj);
}
public E pop() {
E obj = stk.pop();
return obj;
}
}
class Output {
public static void main(String args[]) {
Genericstack <Integer> gs = new Genericstack<Integer>();
gspush(36);
System.out.println(gs.pop();
}
}
Answers
Answered by
0
Answer:
ANSWER> ANSWER> ANSWER> S
Explanation:
SK Djf sijg csao sos sos sos so if u
Similar questions