Question 1: JAVA OOPS - Object Creation Syntax
Which statement is invalid?
Question 2: JAVA OOPS - `this()` Keyword in Constructor
What will the following code print?
Question 3: JAVA OOPS - super Keyword
Which statement is true about super keyword?
Question 4: JAVA OOPS - `super` in Runtime Polymorphism
What will be printed?
Question 5: JAVA OOPS - Interface vs Abstract Class
Which is true about interface and abstract class?
Question 6: JAVA OOPS - Write-only Property
Which statement is correct?
Question 7: JAVA OOPS - Interface Reference
Which statement is correct?
Question 8: JAVA OOPS - Accessing Classes in Package
Which statement about access modifiers is correct for packages?
Question 9: JAVA OOPS - Final Class
Which statement is true about a final class?
Question 10: JAVA OOPS - toString() Overriding
What is the purpose of overriding toString() method?
Question 11: JAVA OOPS - Class Member Access
What will be the output?
Question 12: JAVA OOPS - Constructor Chaining
Which concept is demonstrated here?
Question 13: JAVA OOPS - Multiple Inheritance
Why is multiple inheritance not allowed with classes in Java?
Question 14: JAVA OOPS - Polymorphism with Return Type
Which is true about overriding and return types?
Question 15: JAVA OOPS - Abstract Class Reference
What will be printed?
Question 16: JAVA OOPS - Multiple Objects Encapsulation
What will be printed?
Question 17: JAVA OOPS - Interface with Variables
Which of the following statements is true?
Question 18: JAVA OOPS - Sub-package Access
Which statement is correct?
Question 19: JAVA OOPS - Final Class Example
Which of the following will cause an error?
Question 20: JAVA OOPS - equals() Overriding
Which statement is correct about equals() method?