Blank Final in Java - GeeksforGeeks
A final variable in Java can be assigned a value only once, we can assign a value either in declaration or later.
final int i = 10; i = 30; // Error because i is final.
A blank final variable in Java is a final variable that is not initialized during declaration. Below is a simple example of blank final.
// A simple blank final example final int i; i = 30;
How are values assigned to blank final members of objects?
Read full article from Blank Final in Java - GeeksforGeeks
No comments:
Post a Comment