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
Article Tags :
Recommended Articles