Computer Applications
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)
Related Questions
Which of the following is the CORRECT statement to invoke the method with the prototype int display(int a, char ch)?
- int m = display('A', 45);
- int m = display( );
- int m = display(A,45);
- int m = display(45,'A');
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");
Conversion of a wrapper class to its corresponding primitive type is known as :
- unboxing
- autoboxing
- type casting
- parsing
The String method, which results only in a positive integer, is :
- indexOf
- lastIndexOf
- compareTo
- length