What is a Compile Time Constant in Java ?

A compile time constant is public static final variable. The public modifier is optional here. At compile time, they are replaced with actual values because compiler knows their value up-front and it also knows that it cannot be changed during run-time. So they are constants.



You May Interest

How Can We Prevent a Deadlock in Java ?

How Will You Implement a Thread Safe JSP Page ?

What are the Advantages of Using JSP in Web Architecture ?

What is a Shutdown Hook in Java ?

Why Do We Use Tag Library in JSP ?