Select correct answers
-
The keyword extends is used to specify that an interface inherits from another interface.
-
The keyword extends is used to specify that a class inherits from an interface.
-
The keyword implements is used to specify that an interface inherits from another interface.
-
The keyword implements is used to specify that a class inherits from an interface.
-
The keyword implements is used to specify that a class inherits from another class.
In Java, 'extends' is used for interface inheritance (one interface extending another) and class inheritance (subclass extending superclass). 'implements' is used when a class implements an interface. Options B and E are incorrect because classes don't inherit from interfaces using 'extends', and classes don't inherit from other classes using 'implements'. Option C is wrong because interfaces don't use 'implements'.