Hi, what is compile time constant in switch case? final int a =1; final int b; b = 2; int x =0; switch(x) case a: //ok case b: //compiler error why the above code doesn't work? Thanks! regards samura