Week 2
Week 2
(https://swayam.gov.in)
(https://swayam.gov.in/nc_details/NPTEL)
If already
registered, click
to check your
Week 02 : Assignment 02
payment status The due date for submitting this assignment has passed.
Due on 2024-02-07, 23:59 IST.
8) Which of the following modifiers can be used to disallow a method from being overridden? 1 point
Text
Transcripts ()
a. final
b. transient
Problem
Solving c. volatile
Session - Jan d. static
2024 ()
Yes, the answer is correct.
Score: 1
Accepted Answers:
a. final
Identify the line number(s) where there is/are error(s) in the above code.
a. 1
b. 2
c. 3
d. 4 and 5
10) Which of the following is TRUE about print() and println() methods? 1 point
a. print() prints in a single line only and multiple lines cannot be printed in any way.
b. println() prints and then appends a line break.
c. println() prints in a single line only and multiple lines cannot be printed.
d. print() prints and then appends a line break.