Hi Dharshan,
The custom Java action that you create in the project will be sitting inside your JavaSource/Actions folder.
You can add an additional helper Java file in a separate folder or Datasets and call that file in your main Java action.
Refer the documentation for Adding Custom Java acation :
https://docs.mendix.com/howto8/logic-business-rules/extending-your-application-with-custom-java/