code:
--------------------------------------------------------------------------------
final int a =3;final int b;b=2; switch(4){case a: // some code case
b:// some code }
if we declare a field as final variable we have to initialize either like
final int b=1;
or
final int b;
{
b=1;//this is instance initializer block
}
or
we can initialize it in the class's constructor, (i am telling this for instance variables),failing which complier will flag it as an error.
you might have not done any of the above cases that is why compiler flaged it as an error.