String/Characters Data Type

Example Code

public class StringDataTypes {

	public static void main(String[] args) {
		// store single char
		char ch = 'a';
		// store whole string
		String s = "java";

		System.out.println(ch);
		System.out.println(s);
	}
}