Question 1: JAVA OOPS - Class and Object Creation
Which of the following correctly creates an object of class Car?
Question 2: JAVA OOPS - Default Constructor
What does Java provide if no constructor is defined in a class?
Question 3: JAVA OOPS - Single Inheritance
Which of the following is true about single inheritance in Java?
Question 4: JAVA OOPS - Compile-time Polymorphism
Which of the following demonstrates compile-time polymorphism in Java?
Question 5: JAVA OOPS - Abstract Class Basics
Which of the following statements about abstract classes is true?
Question 6: JAVA OOPS - Encapsulation Basics
Which of the following statements is true about encapsulation?
Question 7: JAVA OOPS - Interface Basics
Which of the following is true about interfaces in Java?
Question 8: JAVA OOPS - Package Basics
Which of the following is true about packages in Java?
Question 9: JAVA OOPS - Final Variable Basics
Which of the following is true about a final variable in Java?
Question 10: JAVA OOPS - Object Class Basics
Which of the following is true about the Object class in Java?
Question 11: JAVA OOPS - Accessing Object Members
What will be the output of the following code?
Question 12: JAVA OOPS - Parameterized Constructor
Which statement correctly creates a parameterized constructor object?
Question 13: JAVA OOPS - Multilevel Inheritance
What will be printed?
Question 14: JAVA OOPS - Method Overloading Example
What will be printed?
Question 15: JAVA OOPS - Abstract Method Implementation
What will happen when we run the following code?
Question 16: JAVA OOPS - Encapsulation Example
What will be printed?
Question 17: JAVA OOPS - Implementing Interface
What will be printed?
Question 18: JAVA OOPS - Default Package
Which statement is correct?
Question 19: JAVA OOPS - Final Variable Example
What will happen?
Question 20: JAVA OOPS - Object Class Methods
Which of the following methods are defined in Object class?