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
suresh bangaloresuresh bangalore 

About main()

Hi frdz,
We are using main() in C,C++,JAVA,why not in apex.Any alternate is to use instead of main()
AshlekhAshlekh
Hi,

The main() is only used for Standalone applications which need a start point to execute the Application.

If you know about WEB applications then they don't need this main() function. Apex is also like that.

-Thanks
Ashlekh Gera