ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 205 - Certified Platform Developer II discussion

Report
Export

A Visualforce Page throws an Attempt to dereference a null object error for a Contact. What change In the controller will fix the error?

A.
Declare a static final Contact at the top of the controller.
Answers
A.
Declare a static final Contact at the top of the controller.
B.
Change the setters signature to return a Contact.
Answers
B.
Change the setters signature to return a Contact.
C.
Use a condition in the getter to return a new Contact if it is null.
Answers
C.
Use a condition in the getter to return a new Contact if it is null.
D.
Change the getter's signature to be static Contact.
Answers
D.
Change the getter's signature to be static Contact.
Suggested answer: C
asked 23/09/2024
Rui Afonso
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first