Solved

What Is the Best Technique for Overcoming the Restriction for the Use

Question 37

Multiple Choice

What is the best technique for overcoming the restriction for the use of primitives, such as int, in generic classes and methods?


A) use of the Object type
B) use of wrapper classes
C) use String and decode values with a method such as Integer.parseInt
D) do not use generic methods when using primitives

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