Advertisements
Advertisements
प्रश्न
The compiler supplies a special constructor in a class that does not have any constructor.
विकल्प
True
False
MCQ
सत्य या असत्य
उत्तर
This statement is True.
Explanation:
The Java compiler generates one if a class does not have an explicit constructor. This default constructor sets the object's values to their defaults. However, if the programmer defines a constructor directly, the compiler will not provide a default constructor.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?