Which technique may reduce heap size?

A developer encounters an error that states that the Apex heap size is exceeded.

Which technique may reduce heap size?
A . Add the transient keyword to the variable definition
B . Move the variable definition inside the scope of the function
C . Use static variables instead of instance variables
D . Use SOQL for loops instead of standard SOQL queries

Answer: D

Latest PDII Practice Questions with 280 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments