Play Games

Search This Blog

Saturday, June 29, 2019

Could not create Apex Class .The Apex class " AccountController" is not a legal name.

Could not create Apex Class .The Apex class " AccountController" is not a legal name.

Problem: While creating apex class, we sometimes encounter this error.



Solution: While creating Apex class, if we give some whitespace before class name, then it will give the above error.

Please check if you gave some whitespace before class name by mistake.This can be of the reason for this error.

No comments:

Post a Comment