Java Object-Oriented Programming: Class and Object MCQ Quiz

Class & Objects Fundamentals Quiz

1. What is a class in Java?

2. Object is created using which keyword?

3. Which of the following is NOT a component of a class?

4. What is the default access modifier of a class in Java (top-level)?

5. Which statement is true about objects?

6. How many objects can be created from a single class?

7. Which of the following is NOT allowed inside a class?

8. What is an instance variable?

9. Which memory area stores objects in Java?

10. Which statement is correct?

11. What is the default value of instance variables?

12. Can a class contain another class?

13. Which is true about constructors?

14. What happens if no constructor is defined?

15. What is the scope of instance variables?

16. Static variables belong to?

17. Which keyword refers to the current object?

18. Can we create object without using new keyword?