BlackRock Interview Question

During the interview, they posed fundamental Java-related queries, such as: What is the difference between an interface and an abstract class? How does method overloading differ from method overriding? Can you explain the concept of encapsulation? What is the purpose of the 'final' keyword in Java?