Constructors And Methods - Study Mode
[#86] Which of the following is a method having same name as that of its class?
Correct Answer
(D) constructor
[#87] Which method can be defined only once in a program?
Correct Answer
(A) main method
[#88] Which operator is used by Java run time implementations to free the memory of an object when it is no longer needed?
Correct Answer
(D) none of the mentioned
[#89] What is the extension of java code files?
Correct Answer
(B) .java
[#90] When Overloading does not occur?
Correct Answer
(D) More than one method with same name, same number of parameters and type but different signature