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
nikkeynikkey 

what is indentation

Hi Folks   ,

Can any one help me on this query ?


Is indentation and comments needed for apex code? What is the importance?


Thanks in Advance 

sfdcfoxsfdcfox
Indentation bears no importance for the syntax of Apex Code. However, indentation is important to make your code easier to read. Without indentation, it can be hard to visually determine which block or function a line of code belongs to.
Siva Krishna KondapalliSiva Krishna Kondapalli
Hi.. Nikkey
Even Comments are important to convey the purpose of writing that syntax and predictive expectation of output by writing that class,variables and methods in the apex class

I hope, this answer would help you.