UGC NET CS 2017Programming Languages and Computer Graphics › Object Oriented ProgrammingVerified
UGC NET CS 2017 PYQ: Which of the following statements is/are TRUE regarding JAVA? Constants that cannot be changed are declared…
Which of the following statements is/are TRUE regarding JAVA?
- Constants that cannot be changed are declared using ‘static’ keyword.
- A class can only inherit one class but can implement multiple interfaces.
- AOnly (i) is TRUE
- BOnly (ii) is TRUECorrect answer
- CBoth (i) and (ii) are TRUE
- DNeither (i) nor (ii) is TRUE
Answer
(B) Only (ii) is TRUE
Approach
Check each Java statement against the language rules.
Reviewed by UGC IQ Editorial Team.