The problem is that those UNICODE character escapes are processed before the code is parsed.
So to the compiler the code looks like this.
This is from the Java Language Specification 3.10.4.
Because Unicode escapes are processed very early, it is not correct to write '\u000a' for a character literal whose value is linefeed (LF); the Unicode escape \u000a is transformed into an actual linefeed in translation step 1 (�3.3) and the linefeed becomes a LineTerminator in step 2 (�3.4), and so the character literal is not valid in step 3. Instead, one should use the escape sequence '\n' (�3.10.6). Similarly, it is not correct to write '\u000d' for a character literal whose value is carriage return (CR). Instead, use '\r'. [ January 16, 2007: Message edited by: Keith Lynn ]
Joined: Jan 16, 2007
thanks i gotit. [ January 16, 2007: Message edited by: anup sachan ]