Salesforce Certified Platform Developer II — Question 87

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?

Answer options

Correct answer: D

Explanation

When the command button is clicked, the action method executed is determined by the order of the extensions. Since CaseExtensionOne is listed first, its Save method will be called. The other options are incorrect because they either suggest that multiple methods would run or that methods from the Standard Controller or the second extension would execute instead.