function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Can anyone explain the purpose of util class with example?

Pradeep SinghPradeep Singh
Hi Karuna,
Util classes are classes that contain reusable code. So here you don't need to write a piece of code again and again. The piece of code that needs to be used in many places is placed in a class instead of writing it everytime we need that logic and we call that class a util class.
Hi Karuna,

Mark as best answer, If it resloves !!
Util class is used to store test data for you organization, it is helps as reusbale code 
for example you are trying to write a mutiple test classes you can use util class and store you data in util class and call that util class in you test class
it reduces time and code reusablity helps you . (http://​

Mark as resloved if it helps :) :)
Bhanu Prakash
visit  (
Thanks Pradeep and Bhanu