Exam4Training

How are variables bound when services use the ccSercviceDao classto execute queries?

How are variables bound when services use the ccSercviceDao classto execute queries?
A . Global variables
B . Apex local variables
C . String substitution
D . Apex class variables

Answer: C

Explanation:

When services use the ccServiceDao class to execute queries, variables are bound by string substitution. This means that the query string contains placeholders for variables that are replaced by their values at runtime.

For example, ccrz.ccServiceDao.getQuery(‘SELECT Id FROM Account WHERE Name = :name’) will replace :name with the value of the name variable.

Exit mobile version