I want to know what the HelperClass used for. Can someone please explain it with examples?
Thank You
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A helper class (in Java, at least) is usually just a static utility class with a variety of methods. In general, a single helper class deals with related functionality, like Apache Commons’ StringUtils class, that has a bunch if static methods that operate on strings.
In Java, these types of classes often exist to wrap up functionality that either cannot (for example, the String class is final, so additional functionality can’t be added) or should not be addedto the class itself.
In a nutshell, however, a helper class is a class that helps, by providing general or specific functionality in a generic, reusable, encapsulated way.