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 classes/methods.
Group of answer choices
You can NOT construct new objects of a generic type (i.e., 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 non-generic class.
public static > E min(ArrayList 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!