Solved

Assume That You Have Declared a Stack Named MyStack to Hold

Question 34

Multiple Choice

Assume that you have declared a stack named myStack to hold String elements. Which of the following statements will correctly retrieve the top element from myStack without removing it?


A) myStack.peek() ;
B) myStack.get() ;
C) myStack.next() ;
D) myStack.pop() ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions