Asked by Alexis Singleton on Apr 26, 2024

verifed

Verified

A generic class can be instantiated as any of the following base types except:

A) Character
B) Array
C) String
D) Double

Generic Class

A class with one or more type parameters that enables it to operate on objects of various types while providing compile-time type safety.

Base Types

The fundamental data types from which other, more complex types can be constructed, similar to primitive types.

  • Familiarize oneself with the notion and application of generics in the context of Java programming.
verifed

Verified Answer

MP
Melanie PortilloApr 27, 2024
Final Answer :
B
Explanation :
A generic class can be instantiated as a Character using Character as the type parameter, as a String using String as the type parameter, and as a Double using Double as the type parameter. However, an array cannot be used as a type parameter for a generic class.