MCQ
Why the special method 'constructor' is executed?
  • A
    To initialize variable
  • B
    To declare variable
  • C
    To clear memory
  • To perform initial task

Answer

Correct option: D.
To perform initial task
D

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free