tag:blogger.com,1999:blog-694855878384792308.post393576740667650950..comments2024-03-21T06:26:49.387-07:00Comments on Java67: What is blank final variable in Java - Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-694855878384792308.post-17232836987844420282014-12-14T11:41:45.569-08:002014-12-14T11:41:45.569-08:00Yes..we can using Instance initialisation block.Yes..we can using Instance initialisation block.Tauseefhttps://www.blogger.com/profile/02321271471558930473noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-55554354505666889202014-07-08T21:59:15.344-07:002014-07-08T21:59:15.344-07:00No u cnt initialize this without constructorNo u cnt initialize this without constructorAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-42428040105525271082014-07-07T05:45:40.233-07:002014-07-07T05:45:40.233-07:00can we initialize this without constructor like in...can we initialize this without constructor like in other methods...???Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-23521845978601058152013-08-29T20:06:05.029-07:002013-08-29T20:06:05.029-07:00I think, if you are initializing final variable at...I think, if you are initializing final variable at the time of object creation, and especially by value passed to constructor, than use blank final variable. For example, you can pass date of birth while creating a Person class, if this would be stored in blank final variable, you can not change it during object's life time. Javin Paulnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-86395843071036227232013-02-17T20:34:10.051-08:002013-02-17T20:34:10.051-08:00When do some one should use blank final variable? ...When do some one should use blank final variable? Do you have a genuine use case for blank final variables in Java ?Anonymousnoreply@blogger.com