Salesforce PDII Question Answer
A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.
Java
01:
02: public class ContactFetcher {
03:
04: static List
05: List
06: return contacts;
07: }
08: private static List
10: //...implementation...
11: }
12: }
Which two lines must change in the above cod39e to make the Apex method able to be wired?
Salesforce PDII Summary
- Vendor: Salesforce
- Product: PDII
- Update on: Dec 26, 2025
- Questions: 161

