Open In App

UGC-NET | UGC-NET CS 2017 Nov – III | Question 41

Like Article
Like
Save
Share
Report

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.

(A) Only (a) is TRUE.
(B) Only (b) is TRUE.
(C) Both (a) and (b) are TRUE.
(D) Neither (a) nor (b) are TRUE.


Answer: (B)

Explanation: In JAVA, constant are not declared using ‘static’ keyword and a class can implement multiple interfaces but class can inherit one class only.
So, option (B) is correct.

Quiz of this Question


Last Updated : 21 Mar, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads