What method is used to place a value onto the top of a stack?
push() method, Push is the direction that data is being added to the stack. push() member method places a value onto the top of a stack.
Explore posts in the same categories: Data Structure Interview Questions