What static means in this case?

What static means in this case? (Java)
class ... {
 static {
//code
}
}
March 19th 20 at 08:43
1 answer
March 19th 20 at 08:45
Solution
It's called a static initialization block. In this case, it means that the code inside the block will be executed at the time of class initialization, before the constructor call (if you create an instance of a class) or when you first access a static method of the class.

Find more questions by tags Java