1.

What Is Blank Or Uninitialized Final Variable?

Answer»

A FINAL variable that is not initialized at the time of DECLARATION is known as blank final variable.

If you want to create a variable that is initialized at the time of creating object and once initialized MAY not be CHANGED, it is useful. For example PAN CARD number of an employee. It can be initialized only in constructor.

A final variable that is not initialized at the time of declaration is known as blank final variable.

If you want to create a variable that is initialized at the time of creating object and once initialized may not be changed, it is useful. For example PAN CARD number of an employee. It can be initialized only in constructor.



Discussion

No Comment Found