मराठी

The compiler supplies a special constructor in a class that does not have any constructor. - Computer Applications

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Constructors - EXERCISES [पृष्ठ ४१८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 7 Constructors
EXERCISES | Q III. 1. | पृष्ठ ४१८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×