Question 1: JAVA OOPS - Class and Object Creation
Which of the following correctly creates an object of class Car?
Question 2: JAVA OOPS - Accessing Object Members
What will be the output of the following code?
Question 3: JAVA OOPS - Default Constructor
What does Java provide if no constructor is defined in a class?
Question 4: JAVA OOPS - Object Reference Assignment
What will be printed?
Question 5: JAVA OOPS - Object Creation Syntax
Which statement is invalid?
Question 6: JAVA OOPS - Class Member Access
What will be the output?
Question 7: JAVA OOPS - Multiple Objects
What does the following code demonstrate?
Question 8: JAVA OOPS - Object Null Reference
What happens if we access a method via a null object?
Question 9: JAVA OOPS - Object Initialization
Which is true about objects in Java?
Question 10: JAVA OOPS - this Keyword Usage
What does the this keyword represent in Java?