Multiple Choice
Which of the following correctly declares a stack that will hold String elements?
A) Stack<String> s = new Stack<String>() ;
B) Stack s = new Stack<String>() ;
C) String s = new Stack<String>() ;
D) String s = new Stack() ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q85: Assume that you have declared a set
Q86: You use a(n) _ to access elements
Q87: You need to write a program to
Q88: Assume that you have declared a queue
Q89: Which of the following statements about stacks
Q91: The nodes of a(n) _ linked list
Q92: You need to access values by their
Q93: The term _ is used in computer
Q94: Which of the following statements about sets
Q95: A(n) _ is a data structure used