title: Is it possible to declare default argument in Java in String?
body: <p>Is it possible to use default argument in the method with String. The code is shown below:</p>
  
  <pre><code>public void test(String name="exampleText") {
  }
  </code></pre>
  
  <p>The code above generate error. Is it possible to correct it?</p>