• Post Reply Bookmark Topic Watch Topic
  • New Topic

may i know what is utility method and helper class  RSS feed

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
may i know what is the meaning of utility method, helper class.

thanks in advance,
rahul
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the API for the java.lang.Math class. That is a class full of utility methods.
 
Bogdan Gusev
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Utility method is usually static method of the class.
In most cases utility methods are placed in separated class that is called utility class or stateless
Utility methods are used when:
* Vendor class is used and can not put a method inside of it
* Class builder method that returns new object instance.
* Method that modifies the state of several classes(business process method)

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!