Mar 8, 2017

Compile time constants and Run time constants

Compile time constants: These are the primitives(int, char, byte and short) and strings that are declared with keyword final and initialized at the time of declaration (value should be known to the compiler at the compile time). For example: public final int x = 10; -> 1 Here the variable x is declared with keyword final and initialized at the declaration time. It is called...