What is the difference between “extends” and “implements” in Java?
A. “extends” is used to inherit from a class, while “implements” is used to implement an interface
B. “implements” is used to inherit from a class, while “extends” is used to implement an interface
C. “extends” is used to inherit from an interface, while “implements” is used to implement a class
D. “implements” is used to inherit from an interface, while “extends” is used to implement a class
Answer:A
What is the difference between “extends” and “implements” in Java?
A. “extends” is used to inherit from a class, while “implements” is used to implement an interface B. “implements” is used to inherit from a class, while “extends” is used to implement an interface C. “extends” is used to inherit from an interface, while “implements” is used to implement a class D. “implements” is used to inherit from an interface, while “extends” is used to implement a class