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

A number cube is rolled 24 times and lands on 2 four times and on 6 three time. Find the experimental probability of not landing on a 6
the area of a triangle is 41 yards to the second power with a base of 5 yard what is the height in yard
Why were the 1920's considered the best and worst of times?
State two ways in which a single-celled organism, such as amoeba, and a human body are alike?
Why were the 1920's considered the best and worst of times?
A number cube is rolled 24 times and lands on 2 four times and on 6 three time. Find the experimental probability of not landing on a 6
a soccer team played 160 games and won 65% of them. how many did they win?
Which is the same as 0.08? A) 80% B) 80/100 C) 8% D) 0.8
State two ways in which a single-celled organism, such as amoeba, and a human body are alike?
There is an inverse relationship between x and y. If y is when x is 3, what is x when y is 9? 3 5