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 have constructor, while an interface cannot have a constructor.
C. An abstract class can have instance variables, while an interface cannot have instance variables.
D. All of the above.
Answer:D
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 have constructor, while an interface cannot have a constructor. C. An abstract class can have instance variables, while an interface cannot have instance variables. D. All of the above.