Solved

Assume That You Have Declared a Stack Named MyStack to Hold

Question 51

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.pop() ;
B) myStack.get() ;
C) myStack.peek() ;
D) myStack.next() ;

Correct Answer:

verifed

Verified

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

Related Questions