Why object declared after one case label is available in others?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3894119/variable-scope-in-a-switch-case">Variable scope in a switch case</a>  </p>
</blockquote>



<p>I've got a code like this:</p>

<pre><code>switch(a) {
case b:
 Object o = new Object();
 return o;
case c:
 o = new Object();
 return o;
 }
</code></pre>

<p>and i'm interesting why it's possible to use variable declared after first case label in the second one even if first state will never be reached?</p>
