Solved

Consider a Method of the Form

Question 14

Multiple Choice

Consider a method of the form
Void printPoint(Point< Number > p) {
//Code not shown
}
Where Point< T > is a generic type.When the method is called,the only objects that may be passed for the parameter p are


A) Point< Number > objects only
B) Point< T > objects,where T is the Number class,or is any subclass of Number
C) Point< T > objects,where T is the Number class,or is any superclass of Number
D) All of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents