Static block is used to initialise static data members. It is executed before the main method at the time of class loading. whereas the final keyword is uesd to restrict the user.It can be applied to a variable,a method or a class. If a variable is declared as final,we cannot change its value.If a class is declared as final,the class cannot be inherited or extended by other class. | 0 |
By: [email protected] On: Mon Sep 11 10:42:13 IST 2017 0 0 0 | 0 |
Are You Satisfied :0Yes0No |