character in java

Java Characters

Normally, when we work with Java Characters, we use primitive data  types char. Example: char ch = ‘a’;// Unicode for uppercase Greek omega characterchar uniChar = ‘\u039A’;// an array of charschar[] charArray ={ ‘a’, ‘b’, ‘c’, ‘d’, ‘e’ }; The Java compiler will also create a Character object for you under some circumstances. For example, …

Java Characters Read More »