How should I have explained the difference between an Interface and an Abstract class?
In one of my interviews, I have been asked to explain the difference between an Interface and an Abstract class. Here’s my response: Methods of a Java interface are implicitly abstract and cannot have implementations. A Java abstract class can have instance methods that implements a default behaviour. Variables declared in a Java interface are … Read more