Guess the output. Java static block #javainterview #coding #java

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Option B is the ans, As static block gets excuted even before the main method, in a top to bottom manner, i.e it will first execute the 1st static block, then search if there is more static block if yes., it will execute it, and lastly the main method will be executed

sanchitachendurkar
Автор

Could you please Can you explain in these code

rajasekhar
visit shbcf.ru