in Unknown Category edited by
1,160 views
1 vote
1 vote

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. Only (i) is TRUE
  2. Only (ii) is TRUE
  3. Both (i) and (ii) are TRUE
  4. Neither (i) nor (ii) is TRUE
in Unknown Category edited by
by
1.2k views

1 Answer

0 votes
0 votes

Ans: B

Multiple inheritance is not supported through class in java but it is possible by interface.

ref: https://www.javatpoint.com/interface-in-java

If you make any variable as final, you cannot change the value of final variable(It will be constant).

https://www.javatpoint.com/final-keyword

Answer:

Related questions