What is static initialization??????
Answers
Answered by
5
In Java, you can use initializer blocks to initialize instance variables. ... The first time you access a static member such as a static field or a staticmethod, any static initializers in the class are executed — provided that you haven't already created an instance of the class.
Answered by
5
Héllø Buddy!!
❤❤✔✔❤❤
#aNswEr →} The static initializer is actually invoked later, when the class is initialized, after it has been loaded and linked. That happens when you instantiate an object of a class or access a static variable or method on the class.
#ThNkYou__★♥★
❤❤✔✔❤❤
#aNswEr →} The static initializer is actually invoked later, when the class is initialized, after it has been loaded and linked. That happens when you instantiate an object of a class or access a static variable or method on the class.
#ThNkYou__★♥★
Similar questions