Apex is a strongly typed, object-oriented language running on the Salesforce multi-tenant platform. Because resources are shared, Apex enforces strict Governor Limits (e.g. 100 SOQL queries per synchronous transaction, 150 DML operations).
apex
public with sharing class AccountService {
public static List<Account> getActiveAccounts() {
return [SELECT Id, Name, AnnualRevenue FROM Account WHERE Active__c = 'Yes' WITH USER_MODE];
}
}