MCQ
Which of the following methods is invoked when a new object is created?
  • constructor
  • B
    main 0
  • C
    getter 0
  • D
    setter 0

Answer

Correct option: A.
constructor
constructor

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