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
ArufianArufian 

What are case-insensitive in Apex ?

Hi guys.
I started to learn Apex recently.
Then I found that many things can be write with case insensitive character.
Such as:
  • Object name:
    • You can write 
      public pagereference method1() { ..}
      instead of 
    • public PageReference method1() { ..}
  • Variable name
    • This will be compile error
    • Integer I;
      Integer i;
  • SOQL and SOSL statements
    • Account[] accts = [sELect ID From ACCouNT where nAme = 'fred'];
I refering to this : http://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_variables.htm

Just to make sure, are there other case-insensitive things that can be happen on Apex ?
Best Answer chosen by Arufian
VempallyVempally
Everything is case insensitive
Nothing is Case Sensitive in apex and that's the reason we follow several naming conventions

All Answers

VempallyVempally
Everything is case insensitive
Nothing is Case Sensitive in apex and that's the reason we follow several naming conventions
This was selected as the best answer
ArufianArufian
Thanks for your answer Vempally.
I think they should be implement the case sensitive system, that will make their Apex more health.
I saw some peoples that wrote codes that didn't make sense (I mean they're going berserk with the naming rule)

>  that's the reason we follow several naming conventions
could you give me the reference for this ?
 
VempallyVempally
In Coding we frequently find three things class, variables and methods...

Following naming conventions will help you indentifying the above said things

Always make an habit of defining class, variables and methods in the following way

class -- MyClass -- each letter of the starting word needs to be capital
variables -- myvariable -- complete lowercase
method -- myMethodForNaming -- first letter needs to be small and following first letter of each word needs to be capital.

ABOVE NAMING CONVENTIONS ARE NOT MANDATORY
Manisha Yadav 27Manisha Yadav 27
https://th3silverlining.com/2009/06/22/force-com-case-sensitivity/#comment-21552

If someone is still facing this case sensitive and case insensitive dilemma then you can visit this link. They have listed a few things which are case sensitive in salesforce, which proves that it is not completely case-insensitive