Before compilation, each Unicode character is replaced by its value, and since it \u000a
represents a new line code
// String st4="MN3444\u000ar4t4";
matches this code (note that the text after \u000a
will be moved to a new line, which means that it will no longer be part of the comment)
// String st4="MN3444
r4t4";
You can test it with
//\u000a;System.out.println("hello comment");
which is equal
System.out.println("hello comment");
and will give you the result: hello comment
source
share