Question OOP-CTOR-0031
EasyCan a constructor be declared static in Java?
- A.
Only in abstract classes
- B.
Yes
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Constructors and Destructors question
Can a constructor be declared static in Java?
Only in abstract classes
Yes
Sign up free to see the answer and a step-by-step explanation.
No
Only in interfaces