Computer Applications

Which of the following are Wrapper classes?

(i) Boolean
(ii) boolean
(iii) character
(iv) Character

  1. (i) and (iv)
  2. (ii) and (iv)
  3. (i) and (iii)
  4. (ii) and (iii)

Java Library Classes

2 Likes

Answer

(i) and (iv)

Reason — Wrapper classes in Java are object representations of primitive data types. Boolean and Character are wrapper classes corresponding to the primitive types boolean and char, respectively.

Answered By

1 Like


Related Questions