When the compiler translates a generic method into Java bytecodes, it uses __________ to replace the type parameters with actual types.

a. erasure.
b. compile-time type replacement.
c. compile-time type checking.
d. compile-time type safety.

a. erasure.

Computer Science & Information Technology

You might also like to view...

Which of the following is not a disadvantage of default memberwise copy with objects containing pointers?

a. Having the possibility of leaving a dangling pointer. b. Allowing both objects to point to the same dynamically allocated storage. c. Allowing the destructor of one object to be called while leaving the second pointer, to the same memory location, intact. d. Requiring the explicit overloading of the assignment operator.

Computer Science & Information Technology

If you are setting up a retail business and want to use the latest technology to make customer purchases as easy as possible at the checkout line, which technology are you most likely to deploy?

A. BAN B. NFC C. ZigBee D. Bluetooth

Computer Science & Information Technology