Computer Applications
Conversion of a wrapper class to its corresponding primitive type is known as :
- unboxing
- autoboxing
- type casting
- parsing
Java Library Classes
8 Likes
Answer
unboxing
Reason — Unboxing is the automatic conversion of an object of a wrapper class (like Integer, Double, etc.) to its corresponding primitive data type (int, double, etc.).
Answered By
3 Likes
Related Questions
Which of the following is the CORRECT java statement to convert the word RESPECT to lowercase?
- "RESPECT".tolowercase( );
- "RESPECT".toLowerCase( );
- toLowerCase("RESPECT");
- String.toLowerCase("RESPECT");
Which of the following are Wrapper classes?
(i) Boolean
(ii) boolean
(iii) character
(iv) Character- (i) and (iv)
- (ii) and (iv)
- (i) and (iii)
- (ii) and (iii)
The String method, which results only in a positive integer, is :
- indexOf
- lastIndexOf
- compareTo
- length
The method to convert a String to double is:
- String.toDouble()
- Double.Parsedouble()
- Double.parseDouble(String)
- Double.parseDouble()