Which of the following reference data types is used for storing a single character?

  • Character
  • Integer
  • String
  • char
The reference data type Character is used for storing a single character in Java. It is different from the primitive data type char, which also stores a single character but is not a reference data type. String is used to store sequences of characters, and Integer is for integer values.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *