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.

Related questions

0 votes
asked May 15, 2020 in MVC Language by sharadyadav1986
0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma
...