Multiple choice

The static block even exectuted without main method in application program.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Static blocks are executed when the class is loaded, even before the main method is called. This is because static initialization happens during class loading, which occurs before any method (including main) can be executed.