PRpramod reddyinpramodreddy.hashnode.dev·Sep 26, 2024 · 2 min readInterfaces in Java tips.Main uses: Provides complete abstraction defines only what class needs to be done, but not how it will do. polymorphism : runtime it can be decided which implements class object can be called. multiple inheritance. Rules: Interface can only be public...00
PRpramod reddyinpramodreddy.hashnode.dev·Sep 3, 2024 · 1 min readStrategy Design PatternWhen to use ? Consider a scenario where different child classes inherited from superclass might have same method implementation , so we see a code duplication in child classes. To avoid this we come up with strategy design pattern. public interface D...00
PRpramod reddyinpramodreddy.hashnode.dev·Jun 26, 2024 · 1 min readSpringBoot ProjectSetup and Layered ArchitectureGo to start.spring.io Select Java and maven and stable version of springboot and fill project metadata. Jar(java archive) microservice standalone java application vs War(web archive) -- complete html css js included (complete bundle). Jar is preferre...00