Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 10 Question 2 Discussion
Line 1 public class AttributeTypes Line 2 { Line 3 private final String[] arrayItems; Line 4 Line 5 @AuraEnabled Line 6 public List getStringArray() { Line 7 Strings+ arrayItems = new String*+, 'red', 'green', 'blue' -; Line 8 return arrayItems; Line 9 } Line 10 } Consider the Apex controller above that is called from a Lightning Aura Component. What is wrong with it?
C) Line 6: method must be static
A) Line 1: class must be global
B) Lines 1 and 6: class and method must be global
D) Line 8: method must first serialize the list to JSON before returning
Garry
7 months agoJacqueline
7 months agoKerry
7 months agoNickie
8 months agoMary
8 months agoJettie
8 months agoEmily
8 months agoArlyne
8 months agoUna
8 months agoAlyce
8 months agoChauncey
8 months agoCathrine
8 months ago