bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java char Keyword

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Java char Keyword?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ myGrade = 'B';
3Order

Put the learning moves in the order that makes the concept easiest to apply.

A char value must be surrounded by single quotes, like 'A' or 'c'.
The char keyword is a data type that is used to store a single character.
Definition and Usage

❮ Java Keywords

Example

char myGrade = 'B';
System.out.println(myGrade);

Definition and Usage

The char keyword is a data type that is used to store a single character.

A char value must be surrounded by single quotes, like 'A' or 'c'.

Related Pages

Read more about data types in our Java Data Types Tutorial .

❮ Java Keywords

Previous

Java catch Keyword

Next

Java class Keyword