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

write the closest benchmark for the percent 8%
Rachel can make 3 bracelets in an hour. Oliver can make only 2 bracelets in an hour, but he already has 5 completed bracelets. Explain to Rachel how she can use
What are the advantages of a sole proprietorship?
What is the total charge of the nucleus of a carbon atom? (1) –6 (3) +6 (2) 0 (4) +12
The area of a square tile is 49 square inches. Write the length of one side of the square time as a square root and standard from
the primary purpose of the 1969 Native American occupation of Alcatraz was to...?
Which is smaller 3 1/2 or 3 7/8
which of the following was not a weakness of the articles of confederation (1781-1789)?
How did environment influence Native American cultures in North America?
List Senator Taft's criticisms of the New Deal?