title: this(<params>) as shortcut in constructor?
body: <p>I got a task that I need to reduce code in the constructor but when I do as in a given example it doesn't work :(</p>
  
  <p>The source code looks so:</p>
  
  <pre><code>public class Item {
      private Product product;
      private int stock;
  
      Item(Product product){
          this.product=product;
          this.stock=0;
      }
  
      Item(Product product, int stock){
          this.product=product;
          this.stock=stock;
      }
  </code></pre>
  
  <p>I tried to write it in this way:</p>
  
  <pre><code>    public class Item {
          private Product product;
          private int stock;
  
          Item(Product product){
              this(product, 0);
          }
  
          Item(Product product, int stock){
              this(product, stock);
          }
  </code></pre>
  
  <p>Could somebody tell me please what is wrong?</p>