title: Commented code gives compilation error in Java?
body: <p>Hi I was creating simple program and got unseen compilation error in commented code.My code is as below :</p>
  
  <pre><code>public class Static_Method_Call
  {               
      public static Character character=getMe();
  
      public static void main(String[] args)
      {
          System.out.println("Inside main() 1 : "+character); 
          //Static_Method_Call.character=new Character('\u000d'); 
          //System.out.println("Inside main() 2 : "+character);
      }
  
      static
      {
          System.out.println("Inside static block : "+character);
          Static_Method_Call.character=new Character('\u003d');       
      }
  
      public static Character getMe()
      {
          System.out.println("Inside getMe() : "+character);
          return new Character('\u002d');
      }
  }
  </code></pre>
  
  <p>Error is as below :</p>
  
  <pre><code>Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
  Invalid character constant
  </code></pre>
  
  <p>What does this error mean in Java ? </p>