static methods2 articles
There are some edge cases where you want to access Spring Beans in a static method, while you should always try to avoid this.
Hidden Dracula Polymorphism Java Challenge
Polymorphism, the ability of an object to take on multiple forms, is one of the most important Java concepts.
We might not even be aware we’re using it all the time but when we instantiate an ArrayList and assign it to a variable of the List type, we are using polymorphism.
It’s a powerful concept because it helps us to decouple responsibilities, therefore, making code more flexible and easier to maintain.