Let's have a look at the following Java code.
public class Main
{
public static void main(String[] args)
{
//\u000d System.out.println("It works fine.");
}
}
In the preceding code snippet, the only line inside the main()
method contains a unicode new line character, \u000d
. It displays the specified message "It works fine." even though that line is commented out. How does it work?