Unicode code in Java Programming

Unicode code in Java Programming

Previous Home Next

 

Unicode code in Java Programming is a system of encoding characters.all characters and string in java used the Unicode encoding.which allows truly international programming.

One thing great about Java is that it is unicode based. That means, 
you can use characters from writing systems that are not english alphabets (english,hindi)
not just in data strings, but in function and variable names too.e names too.
 


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

 


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

Previous Home Next