Question: Pick all correct answers for generic classes / methods . Group of answer choices You can NOT construct new objects of a generic type (
Pick all correct answers for generic classesmethods
Group of answer choices
You can NOT construct new objects of a generic type ie T t new T; is NOT valid
Suppose MilkTea is a subclass of Tea, then Comparator is a subclass of Comparator
A generic method can be declared in a nongeneric class.
public static E minArrayList objects is not valid: should use implements instead of extends since Comparable is an interface
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
