Question 1: JAVA OOPS - Multiple Objects
What does the following code demonstrate?
Question 2: JAVA OOPS - Object Initialization
Which is true about objects in Java?
Question 3: JAVA OOPS - Constructor Execution Order
What will be printed?
Question 4: JAVA OOPS - Static Method and Polymorphism
Which statement is correct?
Question 5: JAVA OOPS - Abstract Method Requirement
Which of the following is true?
Question 6: JAVA OOPS - Changing Internal Representation
Which is true?
Question 7: JAVA OOPS - Interface and Abstract Class
Which is true?
Question 8: JAVA OOPS - Package with Multiple Classes
What will be the output?
Question 9: JAVA OOPS - Final with Parameters
What is true about final parameters in Java?
Question 10: JAVA OOPS - Final Method Overriding
Which statement is correct?
Question 11: JAVA OOPS - Object Null Reference
What happens if we access a method via a null object?
Question 12: JAVA OOPS - Private Constructor
What is true about a private constructor?
Question 13: JAVA OOPS - Inheritance and Private Members
Which of the following statements is true?
Question 14: JAVA OOPS - Constructor and Polymorphism
Which statement is true?
Question 15: JAVA OOPS - Interface Implementation
What will happen with the following code?
Question 16: JAVA OOPS - Encapsulation with Validation
Which is correct for validating input using encapsulation?
Question 17: JAVA OOPS - Static Methods in Interface
Which is valid in Java 8+?
Question 18: JAVA OOPS - Java API Packages
Which of the following is a standard Java API package?
Question 19: JAVA OOPS - Blank Final Variable
Which statement is correct?
Question 20: JAVA OOPS - Object Class hashCode()
Which statement is true about hashCode()?