Multiple choice technology programming languages

Which of the Statements is true

  1. Static Variables are Set at RunTime

  2. Sealed classes cannot be Overriden

  3. finally' block executes only when exception occurs

  4. Both A and B

  5. Both B and C

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

Static variables are initialized at runtime when the class is first loaded, and sealed classes cannot be inherited (overridden). Thus, statements A and B are true, making 'Both A and B' correct. The finally block always executes regardless of whether an exception occurs.