UGC NET CS 2014 Dec – paper-3
February 19, 2024Question 8752 – Database-Management-System
February 20, 2024OOPS
Question 11
|
Which of the following statements is/are TRUE regarding JAVA ?
(a) Constants that cannot be changed are declared using the ‘static’ keyword.
(b) A class can only inherit one class but can implement multiple interfaces.
Only (a) is TRUE.
|
|
Only (b) is TRUE.
|
|
Both (a) and (b) are TRUE.
|
|
Neither (a) nor (b) are TRUE.
|
Question 11 Explanation:
FALSE: Constants that cannot be changed are declared using the ‘static’ keyword.
TRUE: A class can only inherit one class but can implement multiple interfaces.
TRUE: A class can only inherit one class but can implement multiple interfaces.
Correct Answer: B
Question 11 Explanation:
FALSE: Constants that cannot be changed are declared using the ‘static’ keyword.
TRUE: A class can only inherit one class but can implement multiple interfaces.
TRUE: A class can only inherit one class but can implement multiple interfaces.