Originally posted by pankaj patil:
but the size of int is more then the byte.
and final dose not allow the value to be changed . is that the final variable allocates only that much size, which is required at the initialization.
Because the variable is declared as final, the compiler will not allocate any memory for it. As mentioned above, the compiler is also smart enough to see that 50 is small enough to fit in a byte.
Layne