Question: What is the entry returned by the peek method after the following stack operations.push(A). push(R). pop(), push(D), pop), push(L), pop(), push(J). push(S), pop(), pop() pop()
What is the entry returned by the peek method after the following stack operations.push(A). push(R). pop(), push(D), pop), push(L), pop(), push(J). push(S), pop(), pop() pop() 1.S 2.A 3.null 4.Throws an exception
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
