UGC-NET | UGC-NET CS 2017 Nov – III | Question 41
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.
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