Question: The peek ( ) method of a stack does what? A . returns and removes an an object from the bottom of the stack B

The peek() method of a stack does what?
A. returns and removes an an object from the bottom of the stack
B. returns and removes an an object from the top of the stack
C. stores an object on the bottom of the stack
D. stores an object on the top of the stack
E. none of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!