Solved

Which of the Following Correctly Declares a Stack That Will

Question 90

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions