title: Weird "[]" after Java method signature
body: <p>I looked at some Java code today, and I found some weird syntax:</p>
  
  <pre><code>public class Sample {
    public int get()[] {
      return new int[]{1, 2, 3};
    }
  }
  </code></pre>
  
  <p>I thought that can't compile and wanted to fix what I thought was a typo, but then I remembered the Java compiler did actually accept it!</p>
  
  <p>Can someone please help me understand what it means? Is it an array of functions?</p>