What is the output of this program? (a) [3, 5] (b) [3, 2] (c) [3, 2, 5]

Question:

What is the output of this program? import java.util. *; class stack { public static void main(String args []) { Stack obj new Stack(); obj.push

(a) [3, 5]

(b) [3, 2]

(c) [3, 2, 5]

(d) [3, 5, 2]

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: