Apex String Case Insensitive and ID

Apex is case insensitive: Below 2 statements are same to Apex:


If you want to compare 2 strings cases, you should use String.equals(String) method.

Apex is designed case insensitive because it works inline with case insensitive SOQL (SQL in Force.com database), but as a developer, we Read more…