The moose likes Beginning Java and the fly likes Helper class for customised Task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Helper class for customised Task" Watch "Helper class for customised Task" New topic

Helper class for customised Task

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
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

Joined: Dec 22, 2004
Posts: 142
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

Joined: May 18, 2007
Posts: 341

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 ]
subject: Helper class for customised Task
It's not a secret anymore!