Computer Science, asked by Anonymous, 1 year ago

What is static initialization??????

Answers

Answered by rupeshwagh85572
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 Anonymous
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__★♥★
Similar questions