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

Roman religion was adapted from who
For the equation y = 3x2 − 4x + 11, choose the correct application of the quadratic formula. x equals four plus or minus the square root of n
decrease £2500 by 1%
I just need some help to come up with a name for a desk with a built in computer, radio, notebook and drawing paper, and a lamp. Any one got anything? It is for
How many moles of CaO are needed to react with an excess of water to form 370 grams of calcium hydroxide?
How is blood pressure in the body affected by exercise?
Brody and Ethel are arguing about waves. Brody says that waving his hand back and forth is a scientific wave. Ethel says that it is not. Which statement best de
a window is shaped like a parallelogram the base of the window is 27 inches its area is 445.5 square inches. what is the height of the window?
karen drove 12 1/2 miles in 1/4 an hour. how far did she drive in one hour at this rate
What is the best choice to describe the purpose of this myth?