Question 1 of 29
In a Salesforce Apex application, you are tasked with designing a method that processes a list of account records. Each account has a field called `AnnualRevenue`, which is a `Decimal` type. You need to calculate the total revenue for all accounts where the `AnnualRevenue` exceeds $1,000,000. Given that you have a list of accounts, which data type would be most appropriate for storing the total revenue, and how would you implement the calculation in Apex?
Decimal
Integer
Long
Double

Preparing for SalesForce DEV-501 Apex and Visualforce Controllers? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free