0 votes
in JAVA by

How do static blocks get executed if there are multiple static blocks?

1 Answer

0 votes
by

How do static blocks get executed if there are multiple static blocks?

Multiple static blocks are executed in the sequence in which they are written in a top-down manner. The top block gets executed first, then the subsequent blocks are executed.

...