File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why noy make all my service class methos or DAO class methods static?

 
anand kumarblr
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a typical Web application we have service layer and dao layer.
For example in service method i have four methods

Create(Customer customer)
Delete(Customer customer)
Update(Customer customer)
Get(Customer customer)

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?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic