Programming  Java  Class and Object

11. Which of the following is not true about constructors?

It initializes an object immediately upon creation It is syntactically similar to a method The return type of class constructor is the class type itself All of the above
Comments

Share QNo: 11

12. A default constructor has

has no arguments has no return type has one argument but no return type has two arguments
Comments

Share QNo: 12

13. When a method is made static, it cannot use

this super Both a. and b. None the above
Comments

Share QNo: 13

14. Which method of the thread class should be defined?

run() start() Both a. and b. None of these above
Comments

Share QNo: 14

15. In Java, main() method returns a value of type

void int real string
Comments

Share QNo: 15

 

*Click on the QNo to display a Question.

Total Ans