Chunkypants9688 Chunkypants9688
  • 02-09-2019
  • Computers and Technology
contestada

What are the advantages of the java.util.Stack implementation of a stack?

Respuesta :

ExieFansler ExieFansler
  • 09-09-2019

Explanation:

The advantages of java.util.Stack are as following:-

  1. java.util.Stack is an implementation of the vector class hence it can keep track of position of elements in the stack hence it is not required to store an additional pointer for each node.
  2. In the implementation it allocates space only that much is needed.

These are the two advantages of java.util.Stack.

Answer Link

Otras preguntas

Jackie buys a basket for $6, 2 pounds of apples for $3.50 per pound, and 2 pounds of oranges for $3.50 each per pound. The tax for the whole purchase is $1.
examples of three different types of computer storage
5x+15=90 what do the x equal
How to write 7/8 as a percent
the first armed conflicts of the revolutionary war
What are the three oceans that surround asia
Pontius Pilate was the Roman governor of Judea during the time Jesus lived. According to Christian scriptures, what role did Pilate have in Jesus' life? Pilate
Which statement is true about exergonic reactions? A. In exergonic reactions, ΔG is positive due to the absorption of free energy. B. Exergonic reactions use mo
The remainder when x^3 - 11x + 10 is divided by (x+3) is A 52 B 16 C 4 D -24 I was doing a past paper and came across this,I know one (long) way of
Which group convinced President James Madison to go to war with England in 1812? A. land-hungry politicians from the West and South B. angry veterans of the Rev