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

Share this QA

12. A default constructor has

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

Share this QA

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

this super Both a. and b. None the above

Share this QA

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

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

Share this QA

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

void int real string

Share this QA


*Click on the QNo to display a Question.

Total Ans