Week 3
Week 3
Week 3
abhisheklodhi2842004@gmail.com
(https://swayam.gov.in)
(https://swayam.gov.in/nc_details/NPTEL)
If already
registered, click
to check your
Week 03 : Assignment 03
payment status The due date for submitting this assignment has passed.
Due on 2024-02-14, 23:59 IST.
Lecture 13 :
Inheritance
(unit?
unit=34&lesson=
37)
Lecture 14 :
Demonstration-
VI (unit?
unit=34&lesson=
38)
Lecture 15 :
Information
Hiding (unit?
unit=34&lesson=
39)
Quiz: Week 03 :
Assignment 03
(assessment?
name=296)
Assignment 3
Solution (unit?
unit=34&lesson=
41)
Week 3 a. 0
Feedback Form b. 1
(unit?
unit=34&lesson=
c. 2
40) d. Compilation Error
a. Yes, we can override a static method just like we do with instance methods.
Week 7 : ()
b. No, static methods cannot be overridden because they belong to the class, not the object.
Week 8 : () c. It depends on whether the static method is declared as final or not.
d. It depends on the access modifier of the static method.
Week 9 : ()
Yes, the answer is correct.
Score: 1
Week 10 : () Accepted Answers:
b. No, static methods cannot be overridden because they belong to the class, not the object.
Week 11 : ()
5) What is the output of the following Java program? 0 points
Week 12 : ()
DOWNLOAD
VIDEOS ()
Books ()
Text
Transcripts ()
Problem
Solving
Session - Jan
2024 ()
6) What is the output of the below Java program with inheritance? 1 point
a. Sweet=$10 Sugar=$20
b. Sweet=$10 Sugar=$10
c. Sweet=$20 Sugar=$20
d. Compiler error
a. Yes, we can override a static method just like we do with instance methods.
b. No, static methods cannot be overridden because they belong to the class, not the object.
c. It depends on whether the static method is declared as final or not.
d. It depends on the access modifier of the static method.