Advertisements
Advertisements
Question
Every class must have all types of constructors.
Options
True
False
MCQ
True or False
Solution
This statement is False.
Explanation:
- A class in Java does not necessarily have all types of constructors.
- If no constructor is expressly stated, Java will give a default constructor.
shaalaa.com
Is there an error in this question or solution?