wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes What is a helper class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is a helper class?" Watch "What is a helper class?" New topic
Author

What is a helper class?

Bruce Schmid
Greenhorn

Joined: Apr 06, 2009
Posts: 5
Can someone explain how to use a helper class and also profide a small java pgm example.
Rebecca Hopper
Ranch Hand

Joined: Aug 19, 2001
Posts: 38

Here is a good explanation and some examples, as it relates to EJBs. http://www.developer.com/java/other/article.php/734191

I have always thought of helper classes as classes which do the preliminary work, steps other than updating the database or handling transactions. This allows the EJB (or whatever framework you are using) classes that do the heavy-duty work to be shorter, simpler, and easier to read/maintain/debug.


SCJP 1.4
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is a helper class?