title: Constructor with name different to the class name
body: <p>In Java, is it possible to have two constructors of the same class with different names? For example, let's say I have the class  <code>Test</code>, I would like to have something like this</p>
  
  <pre><code>class Test
      HashMap&lt;Integer,Double&gt; hsI;
      HashMap&lt;Double,Double&gt; hsD;
  
      Test() {
          hsi = new HashMap&lt;&gt;();
      }
  
      Test2() {
          hsi = new HashMap&lt;&gt;();
          hsD = new HashMap&lt;&gt;();
      }
  }
  </code></pre>
  
  <p><strong>Edit:</strong>
  I'm going to explain why I would like this.</p>
  
  <p>I have a class like this, let's call it <code>Class1</code>:</p>
  
  <pre><code>public class Class1 {
  private HashMap&lt;Integer,ClassContainer&gt; hm;
  
  private class ClassContainer {
  
      ClassContainer {
      hm1 = new HashMap&lt;&gt;();
      hm2 = new HashMap&lt;&gt;();
      hm3 = new HashMap&lt;&gt;();
      }
  
      HashMap&lt;Double,Double&gt; hm1;
      HashMap&lt;Double,Double&gt; hm2;
      HashMap&lt;Double,Double&gt; hm3;
  
  ... //more code
      }
  </code></pre>
  
  <p>So I want to do a few subclasses of <code>Class1</code>, but in this classes I don't need all the hashmaps of <code>ClassContainer</code>, I want to save space. For example, Class2 will extend Class1 but will only need hm2; Class3 will extend Class1 but will only need hm2 and hm3. </p>
  
  <p>I would like a way to initialise just the necessary parts of ClassContainer to save memory. And I want to use subclasses because they share a lot of code.</p>