Character is data type in java which can take only one character value in single quote. This value can be any alpha. Use of character in java is shown below.
Example of Character
public class JavaCharacterExample { public static void main(String[] args) { char ch='a'; System.out.println("Character example :"+ch); } }
Output
Character example :a
Tags: Data types



Link to Us