Java parses character escape codes in source code, not just strings.
This allows you to use Unicode identifiers without a Unicode encoding.
Therefore, the \u000d
in the comment is parsed as a newline, ending the comment and beginning an instance initializer.
More Related Contents:
- Java char output isn’t consistent
- What is a “surrogate pair” in Java?
- How can I iterate through the unicode codepoints of a Java String?
- Java FileReader encoding issue
- how to add unicode in truetype0font on pdfbox 2.0.0?
- Java equivalent to JavaScript’s encodeURIComponent that produces identical output?
- ‘Fill’ Unicode characters in labels
- What are “connecting characters” in Java identifiers?
- How can I get a Unicode character’s code?
- How to compile a java source file which is encoded as “UTF-8”?
- Why is executing Java code in comments with certain Unicode characters allowed?
- Creating Unicode character from its number
- Easy way to remove accents from a Unicode string? [duplicate]
- Write a file in UTF-8 using FileWriter (Java)?
- Why does the Java char primitive take up 2 bytes of memory?
- Can a valid Unicode string contain FFFF? Is Java/CharacterIterator broken?
- How to make the Java.awt.Robot type unicode characters? (Is it possible?)
- How does Java store UTF-16 characters in its 16-bit char type?
- How to properly trim whitespaces from a string in Java?
- How can I open files containing accents in Java?
- UTF-8 text (Hindi) not getting displayed on Browser window or Eclipse console
- Unicode characters in app doesn’t show correctly [closed]
- Unicode escape syntax in Java
- Why does this code, written backwards, print “Hello World!”
- How to determine if a String contains invalid encoded characters
- Java: Convert String “\uFFFF” into char
- Java charAt used with characters that have two code units
- How to read UTF8 encoded file using RandomAccessFile?
- First character of the reading from the text file :  [duplicate]
- What is the {L} Unicode category?