title: Java independent block of code
body: <p>I've been working with Java for a long time but never have come across something like this.
  I would like to know what it does and why it is not an error.</p>
  
  <pre><code>public class Foo{
  
   private int someVariable;
  
   {
      doSomething();
   }
  
   public Foo(){
   }
  
   private void doSomething(){
      // Something is done here
   }
  
  }
  </code></pre>
  
  <p>I would like to know what the purpose of the individual block is which contains a call to "doSomething()".
  Its just a skeleton code. The actual code that I came across is at <a href="http://www.peterfranza.com/2010/07/15/gwt-scrollpanel-for-touch-screens/">http://www.peterfranza.com/2010/07/15/gwt-scrollpanel-for-touch-screens/</a></p>