Salesforce Platform Developer I (legacy) — Question 55

Which statement results in an Apex compiler error?

Answer options

Correct answer: D

Explanation

Option D is incorrect because it uses a mismatched parenthesis, which will lead to a syntax error during compilation. The other options are syntactically correct and do not result in any compilation errors.