Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Java (http://siteownersforums.com/forumdisplay.php?f=12)
-   -   Can we intialize blank final variable? (http://siteownersforums.com/showthread.php?t=348723)

Pavan Techn 05-29-2018 08:27 AM

Can we intialize blank final variable?
 
Yes, only in constructor if it is non-static. If it is static blank final variable, it can be initialized only in the static block.


All times are GMT -7. The time now is 09:10 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.