Skip to content

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?

  1. Constants that cannot be changed are declared using ‘static’ keyword.
  2. A class can only inherit one class but can implement multiple interfaces.
  1. A
    Only (i) is TRUE
  2. B
    Only (ii) is TRUE
    Correct answer
  3. C
    Both (i) and (ii) are TRUE
  4. D
    Neither (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.