Multiple choice technology programming languages

Can constructors be declared static?

  1. True

  2. False

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

Constructors are used to initialize new object instances and cannot be declared static. Making a constructor static would prevent it from accessing instance variables and instance methods, which contradicts its purpose. Therefore, constructors can never be static, and the stored answer 'False' is correct.