Salesforce
PDII · Question #5
Consider the Apex controller above, that is called from a Lightning Aura Component. What is wrong with it?
The correct answer is C. Line 6: method must be static. See the full explanation below for the reasoning.
Question
Consider the Apex controller above, that is called from a Lightning Aura Component. What is wrong with it?
Options
- ALine 1: class must be global
- BLines 1 and 6: class and method must be global
- CLine 6: method must be static
- DLine 8: method must first serialize the list to JSON before returning
How the community answered
(18 responses)- A6% (1)
- B6% (1)
- C78% (14)
- D11% (2)
Community Discussion
No community discussion yet for this question.