Extends Vs Implements

Hello everyone! I am back with one more important topic extends vs implements keywords in java. Assuming that you have some idea about Inheritance in java. Let’s discuss one by one with a real life example. Starting with extends, suppose there is an industry that produce Human Beings. Just assume! as we can’t do thatūüėĀ. … More Extends Vs Implements

Why non-final variables/objects are not accessible in Lambda?

Today we are going to discuss about why variables/objects have to be final (or effectively final) when using inside an lambda expression (or anonymous inner class). I can feel your frustration as you might be wandering from blog to blog to get your doubts clear. Well, you’ve come to the right place. Fasten your seat … More Why non-final variables/objects are not accessible in Lambda?

Builder Design Pattern

Building Design Pattern is one of the Creational Design Patterns. In this design pattern we create small parts of an object and then we arrange them as per requirement to create the final object. For example, you are a car builder. You can manufacture car’s Tyre, then it’s engine, then body, then interior and finally … More Builder Design Pattern

Facade Design Pattern

Facade Design Pattern is one of the Structural Design Patterns. Facade Design Pattern says that the concept of Facade is similar to a building’s face. When you look at a building you find it beautiful and easy to use (whether it is for living or any other commercial stuffs you want to do with it). … More Facade Design Pattern

Abstract Factory Method Design Pattern

Hey All, So¬†Abstract Factory Method Design Pattern is one of the Creational Design Patterns.¬†Like in Factory Method Design Pattern¬†we focused on creating Factory. In Factory Method Design Pattern, there was only one factory who directly creates the objects for us. But in case of Abstract Factory Method Design Pattern, we’ll have FactoryProducer whose job would … More Abstract Factory Method Design Pattern

Adapter Design Pattern

Adapter Design Pattern is one of the Structural Design Patterns. Following picture is the best example to understand this Design Pattern. This Adapter helps us to charge any of the 5 electronic devices by using only this single device. In same way, an Adapter Class helps other classes to use multiple interfaces. Let’s see how. … More Adapter Design Pattern