Solved

Suppose Stack Is a Generic Class That Has One Type

Question 9

Multiple Choice

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


A) is illegal.
B) is permitted and safe.
C) is permitted but unsafe,the compiler issues a warning message.
D) is 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