Multiple choice technology programming languages

Select the one correct answer. Which method defined in Integer class can be used to convert an Integer object to primitive int type. A) valueOf B) intValue C) getInt D) getInteger

  1. A

  2. C

  3. D

  4. None of the Above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The intValue() method converts an Integer object to a primitive int. Among the listed options, valueOf() converts String/int to an Integer object, getInt() is not a standard Integer method, and getInteger() returns the Integer value of a system property. Therefore None of the Above is correct.