char keyword in Java

The “char” keyword is used to declare a variable of character type. “char” is a Java primitive type. A char variable can store a single Unicode character. For example: char delimiter = ‘;’; char letterA = ‘A’; char letterB = ‘B’; char letterC = ‘C’; The char keyword can be used as a method parameter […]

Share this article on