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 two countries were the first to declare war on Germany in WWII?
Factor the expression -10x^2-41x-21
The most commonly spoken language in the Fertile Crescent around the time of Jesus was
hey guys i know this seems long but i really need the help so plzz]Step 1: Write five word phrases to be translated using the various key terms from the lesson.
how to solve x to the power of 2 = 14
For this assessment, you will be taking Newton’s laws and describing how they are illustrated in a specific event. You only need to choose one of the options pr
help me the area of a rectangular roof of a doghouse is 756 square inches. the length of the roof is 108 inches. how many inches wide is the roof? show the math
Which best describes Germany’s standard invasion strategy at the beginning of World War II?a. Attack with a combination of speed and overwhelming forceb. Intimi
How do you work this problem?
Solve the equation x=x+3