title: Java: How can a constructor return a value?
body: <pre><code>$ cat Const.java 
  public class Const {
      String Const(String hello) {
          return hello; 
   }
   public static void main(String[] args) {
       System.out.println(new Const("Hello!"));
   }
  }
  $ javac Const.java 
  Const.java:7: cannot find symbol
  symbol  : constructor Const(java.lang.String)
  location: class Const
    System.out.println(new Const("Hello!"));
                       ^
  1 error
  </code></pre>