According to my knowledge Compile Time Constants
or just plain compile constants, Officially known as "compile-time constant expressions" these are static finals whose value is known at compile time. e.g.
These can be used as switch case labels, subject, of course, to the usual byte, short, char and int-only restriction.
So conclusion is Compile time constants are evaluated at compile time, and treated as if they were literals, inlined in the code.
Please check this discussion for more examples
JAVARANCH: Compile Time Constants Hope it helps you. Let me know for any concerns.
[ May 13, 2008: Message edited by: Ankur Sharma ]