MCQ Answer

Which of the following is not applicable for a constructor function?

Which of the following is not applicable for a constructor function?

Topic : JAVA Constructors

A. It has the same name as the class.

B. It has no return-type

C. It is usually used for initialisation

D. It can be invoked using an object like any other member function




Correct Answer is :

D. It can be invoked using an object like any other member function



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad