What is the difference between an abstract class and an interface in Java?
A. An abstract class can have both abstract and non-abstract methods, while an interface can only have abstract methods.
B. An abstract class can be instantiated, while an interface cannot.
C. A class can implement multiple interfaces, but can only extend one abstract class.
D. All of the above.
Answer:A
What is the difference between an abstract class and an interface in Java?
A. An abstract class can have both abstract and non-abstract methods, while an interface can only have abstract methods. B. An abstract class can be instantiated, while an interface cannot. C. A class can implement multiple interfaces, but can only extend one abstract class. D. All of the above.