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
dfalsodfalso 

Quick question on class naming rules...

Hi all, I'm a relatively new Apex developer, and was looking for a list of Apex naming rules. I recently attended a Dev 501 class and I remember we briefly touched on this topic, but for the life of me, I can't find documentation or discussion on this. If you have a good link for me to follow, that'd be great.

Things like:
-When I try to use an underscore in my class name, Eclipse complains that it can't write to the server, so I assume underscores are bad.
-I know there's an upper limit on the number of characters in a name, but I don't know what it is.

Thanks all,
-Dominic
jeremy_rossjeremy_ross
Really good question.  I can't find any documentation on identifier specification.  It appears that:

Max length is 255
First character [a-Z]
Subsequent characters [a-Z0-9]

Jeremy