What is the difference between an abstract class and an interface in Java?
A. An abstract class can have both concrete and abstract methods, while an interface can only have abstract methods.
B. An interface can have both concrete and abstract methods, while an abstract class can only have abstract methods.
C. An abstract class can be instantiated, while an interface cannot.
D. None 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 concrete and abstract methods, while an interface can only have abstract methods. B. An interface can have both concrete and abstract methods, while an abstract class can only have abstract methods. C. An abstract class can be instantiated, while an interface cannot. D. None of the above