Solved

Suppose Stack Is a Generic Class That Has One Type

Question 1

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

Related Questions