Register / Login
Win a copy of
Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA)
this week in the
OO, Patterns, UML and Refactoring
why noy make all my service class methos or DAO class methods static?
posted 6 years ago
In a typical Web application we have service layer and dao layer.
For example in service method i have four methods
a) My doubt is all these 4 methods does not make use of class variables, so can i make all these 4 methods static?
b) Usually i never see in any application they make these static my question is when do we make methods static?
Building Effective Service layer using Spring+Hibernate
DAO implementation questions
Preventing access of DAO layer from Service layer.