Question: Given the code below: ------------------------------------------------------------- class Box { /* ... */ } // somewhere in main Box [] myVar = new Box [100]; -------------------------------------------------------------- Question:
Given the code below: ------------------------------------------------------------- class Box
// somewhere in main Box
Question: Generic classes:
(Select all that apply.) (1) will issue a fatal compiler error if a type parameter is missing. (2) allow the client to decide some or all of the generic class's internal member data types. (3) will not allow the formal instantiation of a generic array of type E, where E is a type parameter to the generic. For example: (4) allow only primitive type parameters.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
