title: A unicode newline character(\u000d) in Java
body: <p>Let's see the following code snippet in Java.</p>
  
  <pre><code>public class Main {
      public static void main(String[] args) {
          // new Character(' \u000d System.out.println("Hello");
      }
  }
  </code></pre>
  
  <hr>
  
  <p>In the above code, although the only line in the <code>main()</code> method is commented out, it displays the output <code>Hello</code> on the console, even though it looks like that this commented line contains some syntax errors. If this line is uncommented, it will not work at all, causing a compile-time error.</p>
  
  <p>Why does it output "Hello" here?</p>