.chars java code example Example 1: what is a char in java Character ch = new Character('a'); Example 2: string char at java char ch=name.charAt(4);