title: Output Parameters in Java
body: <p>With a third party API I observed the following.</p>
  
  <p>Instead of using,</p>
  
  <pre><code>public static string getString(){
     return "Hello World";
  }
  </code></pre>
  
  <p>it uses something like</p>
  
  <pre><code>public static void getString(String output){
  
  }
  </code></pre>
  
  <p>and I am getting the "output" string assigned.</p>
  
  <p>I am curious about the reason of implementing such functionality. What are the advantages of using such output parameters?</p>