• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Helper class for customised Task

 
jacob deiter
Ranch Hand
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Helper class.Why we need that in our application.Can I write any helper class for my customised task
 
Guido Sautter
Ranch Hand
Posts: 142
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question might be way easier to answer if you specify (a) what your actual task is, and (b) what your "helper class" is supposed to do ... in general, you can create as many different classes as you like, for whatever purpose you like.
 
Anubhav Anand
Ranch Hand
Posts: 341
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helper classes are just a term that developers give to classes that are used to assist in providing some functionality, though that functionality isn't the main goal of the application.

A Helper class is a simple java class. It is used to reduce the amount of redundancy in your code. Basically, they are utility classes that may be used several times accross the application.

jacob deiter: Can I write any helper class for my customised task


Yes. Indeed you can, but, the precise thing is that making a helper class just for the sake of separating a customised task may not be the best option, if it's just used at a single place.

Also, you may like to have a look at view helper
[ April 24, 2008: Message edited by: Anubhav Anand ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic