title: Clarification on separate sections of code inside one method with curly brackets
body: <p>Is that good practice to write code inside one method with separate sections of curly brackets?</p>
  
  <pre><code>    public String getName()
      {
         String returnValue;
  
            {
               int a=0;
             --- 1 - 5 lines----
            }
  
            {
              int a=0;
             --- 6 -  10 lines----
            }
  
      return returnValue;
  
      }
  </code></pre>
  
  <p>If it is a good practice, then here is my next question.
          I’m declaring same variable twice in the method but inside the blocks. Does it mean each block occupies separate\extra memory? Am I right here? Please correct me if I’m wrong.</p>