A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
OO, Patterns, UML and Refactoring
why noy make all my service class methos or DAO class methods static?
Joined: Oct 27, 2006
Jan 21, 2010 21:38:45
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?
I agree. Here's the link:
- it saves me about five hours per week
subject: why noy make all my service class methos or DAO class methods static?
DAO implementation questions
Building Effective Service layer using Spring+Hibernate
Preventing access of DAO layer from Service layer.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013