Solved

Suppose Stack Is a Generic Class That Has One Type

Question 4

Multiple Choice

Suppose Stack is a generic class that has one type parameter.The following assignment Stack< Integer > integerStack = new Stack( 10 ) ;
Is __________.


A) illegal.
B) permitted and safe.
C) permitted but unsafe,the compiler issues a warning message.
D) permitted but unsafe,the runtime environment issues a warning message.

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents