Engaged Employer
They asked: "Can you explain the difference between an abstract class and an interface in Java?"
Anonymous
I explained that an abstract class can have both abstract and non-abstract methods, and it supports default behavior. An interface, on the other hand, is completely abstract (before Java 8) and is used to achieve full abstraction. I also mentioned that Java allows multiple interfaces to be implemented, which helps in resolving the issue of multiple inheritance.
Check out your Company Bowl for anonymous work chats.