nerdexam
Salesforce

PDII · Question #109

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…

The correct answer is D. Save from CaseExtensionOne will be executed. See the full explanation below for the reasoning.

Question

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?

Options

  • AAll of the three Save methods will be executed
  • BSave from Case Standard Controller will be executed
  • CSave from CaseExtensionTwo will be executed
  • DSave from CaseExtensionOne will be executed

How the community answered

(34 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    12% (4)
  • D
    79% (27)

Community Discussion

No community discussion yet for this question.

Full PDII Practice