Which data type would be suitable to store a character value in Java?
- byte
- char
- double
- float
In Java, the char data type is used to store a single character. It can hold any character, including letters, numbers, and special symbols.
Loading...
Related Quiz
- Deadlocks involving synchronized methods or blocks can potentially be resolved by ________.
- In Java 8 and above, the ________ method can be used to perform a certain action for each element of a collection.
- Which of the following classes is used to write characters to a file in Java?
- Can an interface contain static methods in Java?
- In memory, the rows of a two-dimensional array in Java can be __________.