This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 576
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 ]
It is sorta covered in the JavaRanch Style Guide.
subject: Helper class for customised Task
Similar Threads
Writing Files in Tomcat?
How do I call method of jsp from servlets?
helper class
Formatting data for view
Double checked locking