Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 128 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 128
Topic #: 1
[All Certified Platform Developer II Questions]

A developer has a page with two extensions overriding the Standard controller for Case.
<apex:page standardController="Case" extension="CaseExtensionOne,CaseExtension Two" showHeader="false"> Each extension has a method called Save. The page has a command button as defined: <apex:commandButton value="Save" action="{!save}"/>
What will happen when a user clicks the command button?

  • A. All of the three Save methods will be executed
  • B. Save from Case Standard Controller will be executed
  • C. Save from CaseExtensionTwo will be executed
  • D. Save from CaseExtensionOne will be executed
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
FriedConsole2000
9 months, 1 week ago
Selected Answer: D
It is "D". Leftmost extension.
upvoted 1 times
...
Sapphire808
1 year, 1 month ago
Selected Answer: A
All of the controllers will execute if it is not specified, but the order is never guaranteed. The documentation does say that what will be shown will be overwritten by extension 1 but it does not state that the other extensions will not be executed, with the keyword being overwritten (potentially meaning it did execute but it will not be the final value returned). https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm
upvoted 1 times
FriedConsole2000
9 months, 1 week ago
You should reread that doc. It is "D"
upvoted 1 times
...
...
lorenac2
1 year, 10 months ago
Selected Answer: D
Reference: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm
upvoted 3 times
...
drwebber
2 years, 11 months ago
Selected Answer: D
first extension takes precedence: https://developer.salesforce.com/forums/?id=906F0000000BO6fIAG
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...