NPTEL Programming In Java Week 3 Assignment Answers 2025

NPTEL Programming In Java Week 3 Assignment Answers 2025

1. Which of the following is true about the super keyword in Java?

a. super can be used to call a parent class constructor.
b. super is used to access private variables of the parent class.
c. super is used to call a static method in the parent class.
d. super can only be used inside a static method.

Answer :- For Answers Click Here 

2.

Answer :- 

3.

Answer :- 

4. Which of the following statements about abstract classes in Java is correct?

d. Abstract classes can be marked as final.
a. Abstract classes can be instantiated directly.
b. An abstract class must contain at least one abstract method.
c. A class inheriting from an abstract class must implement all its abstract methods unless it is
itself abstract.

Answer :- 

5.

Answer :- For Answers Click Here 

6. Which of the following is NOT true regarding the final keyword in Java?

a. A final method cannot be overridden in a subclass.
b. A final variable can only be assigned once.
c. A final class can have subclasses.
d. A final variable can be assigned during declaration or in the constructor.

Answer :- 

7.

Answer :- 

8. Which of these is NOT an example of method overriding in Java?

a. A subclass defining a method with the same name but different parameters than a superclass
method.
b. A subclass providing a new implementation for a method in the superclass.
c. A subclass defining a method with the same name and parameters as a superclass method.
d. Using the super keyword to call the superclass version of an overridden method.

Answer :- 

9.

Answer :- 

10.

Answer :- For Answers Click Here 
Scroll to Top