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

Which event led most directly to a decline in the political power of ancient Greek city-states in the Mediterranean Sea? A. Fighting between city-states led to
Frederick the Great is credited with making a great European power. i think its Prussia but i don't know
Who controlled the area of southern Italy prior to the unification of the country? A. Kingdom of the Two Sicilies B. Austrian Empire C. Papal States D. Kingdom
What is all the organisms living in a certain area?
percent increase from 86 to 150
completing the square v^2 + 4v - 22= 10
what is zeus's home town?
What type of lifestyle did the Mongols live? A. pastoral nomadic B. hunter-gatherer C. agricultural D. sedentary
a flagpole casts a shadow that is 26ft long. a yardstick casts a shadow that is 4ft long how tall is the flagpole
whatkind of energy travels through water better than through air?