Java: Unicode Character Escape Syntax

By Xah Lee. Date: .

Unicode Character Escape Syntax

Any character in source code can also be represented by its Unicode codepoint. By starting with \u followed by its 4 digits hexadecimal code.

class X2 \u007b
    static \u0069nt \u03b1 = 3;
    public static void main(String[] arg) {
    System.out.println( \u03b1 );
    }
}

In the above example,

To find Unicode character and its codepoint and hexadecimal, see Unicode Search 😄

Java, Unicode