Character Data Type
stores a single character value using ASCII or Unicode
char letter = 'C'; // ASCII (American Standard Code for Information Interchange)
char numChar = '4'; // save 4 as a character value not an integer value
// Using Unicode
// char letter = '\u0041'; // A
// char numChar = '\u0034';
// increment operator can be used on character variables
// to get the next preceding ASCII or Unicode character.
System.out.println(++letter); // D as a single character value
System.out.println(numChar); // 4 as a single character value
On this page of the site you can watch the video online Java Tutorial 9 - Character Data Type (Remastered) with a duration of hours minute second in good quality, which was uploaded by the user Ken 10 March 2020, share the link with friends and acquaintances, this video has already been watched 57 times on youtube and it was liked by 1 viewers. Enjoy your viewing!