Multiple choice technology programming languages

If a class has a Static Constructor and a Public Constructor,Which one is invoked first upon object initialization?

  1. public constructor

  2. static constructor

  3. both

  4. I don't know.

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

Static constructors are invoked first when a class is initialized, before any instance constructor. They run once per type (not per object) to initialize static class members. The public constructor runs after the static constructor completes.