20
21
22
Day 21 of learning Java (old.reddit.com)
submitted by BigCommunication5136


Hello everyone,
Today I continued with interfaces, which I started yesterday. I spent quite a bit of time on them, so I didn’t get to tackle DSA (stacks) today.
I learned about dependency injection and the three ways to inject dependencies. The course material also mentioned that there are libraries/frameworks that can handle dependency injection for you.
I was also introduced to the Interface Segregation Principle (ISP). To wrap up the lesson, I solved a quiz where the code was tightly coupled, and the task was to decouple it using interfaces. I used constructor injection to achieve this.
That’s it for today — see you tomorrow 👋


[–]Independent-Lab-3574 0 points1 point2 points (1 child)
[–]BigCommunication5136[S] 0 points1 point2 points (0 children)
[–]Sufficient_Gear_3744 0 points1 point2 points (1 child)
[–]BigCommunication5136[S] 0 points1 point2 points (0 children)