Possible Duplicate:
Variable scope in a switch case
I've got a code like this:
switch(a) {
case b:
Object o = new Object();
return o;
case c:
o = new Object();
return o;
}
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?