ASAmit singhinyesamitsingh.hashnode.dev·1d ago · 5 min readSOLID Principles – MCQs Q1. Single Responsibility Principle (SRP) A Report class performs the following tasks: Generates report data Saves the report to a database Sends the report via email Formats the report as PDF W00
ASAmit singhinyesamitsingh.hashnode.dev·2d ago · 3 min readQuizMCQ 1 class Engine { } class Car { private Engine engine = new Engine(); } Relationship between Car and Engine? A. Association B. Aggregation C. Composition D. Inheritance MCQ 2 class Student00
ASAmit singhinyesamitsingh.hashnode.dev·3d ago · 6 min read Dependency Inversion Principle Dependency Inversion Principle (DIP): A Beginner's Guide with Java Examples Introduction Imagine you buy a new mobile phone. Today, you charge it using a USB Type-C charger. Next year, you buy another00
ASAmit singhinyesamitsingh.hashnode.dev·3d ago · 7 min readInterface Segregation Interface Segregation Principle (ISP): A Complete Guide with Real-Life Examples and Java Introduction Imagine you buy a basic printer for your home. All you want is to print documents. However, when y00
ASAmit singhinyesamitsingh.hashnode.dev·3d ago · 9 min readOpen/Closed PrincipleOpen/Closed Principle (OCP) in SOLID: A Complete Guide with Real-Life Examples and Java Code Introduction When developers first hear the definition of the Open/Closed Principle (OCP), they often find 00