The char is a primitive data type. It is 16 bit type and used to represent Unicode characters. The range of char is 0 to 65,536. Below given a simple example of char data type.
The char is a primitive data type. It is 16 bit type and used to represent Unicode characters. The range of char is 0 to 65,536. Below given a simple example of char data type.
public class JavaChar {
|