Programming  Java  Class and Object

1. 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

2. A default constructor has

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

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

this super Both a. and b. None the above

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

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

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

void int real string


*Click on the QNo to display a Question.

Total Ans



Aptitude Coaching - Free Live Session !!