🔐 Encapsulation & Private Use What is encapsulation in Java? Why are class variables marked private? How does using private variables and public getters/setters help in encapsulation? Can we access private variables outside the class? If yes, how? 🔁 Method vs Function What is the difference between a method and a function in Java? Can we create functions outside a class in Java? Why is everything inside a class in Java? ⚠️ Exception Handling (Try-Catch-Finally) What is exception handling? Why is it important in Java? What is the use of try, catch, and finally blocks? Will finally always execute even if there is a return in the try block? What is the difference between throw and throws in Java? 💡 Method Overloading vs Overriding What is method overloading? Give a real-life example. What is method overriding? Where is it used? Can we overload methods with different return types only? What happens if we remove @Override in an overridden method? 🌀 Stream API (Java 8) What is the use of Stream API in Java? How do you filter even numbers from a list using Stream? What is the difference between map() and filter() in Stream? 🛑 final, finally, finalize What is the use of the final keyword in Java? How is finally block different from final keyword? When is the finalize() method called?