True or False Java 1. The array list is a class of generic data types. 2. A gene
ID: 3589376 • Letter: T
Question
True or False Java
1. The array list is a class of generic data types.
2. A generic type is a primitive.
3. Accessors and mutators are classes
4. It is possible to have interfaces with generic class types.
Considering:
For a class that has a generic type parameter T
<T> follows the class name in the classes header
<T> does not follow the name of the constructors in their definitions
T not <T> can be a data type of data fields, method parameters, method return types, and local variables.
Of these 3 statements above which if any are false?
A. all are false
B. all are true
C. only the last one is false
Explanation / Answer
1.
true
Arraylist is a object of generic data types
2. false
Generics in Java are an entirely compile-time construct - the compiler turns all generic uses into casts to the right type. This is to maintain backwards compatibility with previous JVM runtimes.
3. false
these are methods.
4 b all are true
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.