Salesforce Interview Questions – Part 2

Salesforce interview Question asked in 2014 and 2015 in different companies.

Huge number of candidates are searching for Salesforce Interview Questions and Salesforce FAQ. Every candidate can download Salesforce Interview Questions with answers in PDF format.

31. What are the different types of controllers?

We have three types of controllers. They are

  1. Standard controller.
  2. Custom controller.
  3. Controller extension.

Controller definition: A Visual force controller us a set of instructions that specify what happens when a user interacts with the components specified in associated Visualforce markup, such as when a user clicks a button or a link.

  • Controllers also provide access to the data that should be displayed in a page, and can modify component behavior.

Standard Controller: A standard controller consists of the same functionality and logic that is used for a standard Salesforce page. For example, if we use the standard accounts controller, clicking a Save button in a Visualforce page result in the same behavior as clicking Save on a standard Account edit page.

Custom Controller: A custom controller is a class written in Apex that implements all of a page logic.

If we use custom controller, we can define new navigation elements or behaviors, but we must also reimplement any functionality that was already provided in a standard controller.

Controller Extensions: A controller extensions is a class written in Apex that adds to or overrides behavior in a standard or custom controller. Extensions allow us to leverage that functionality of another controller while adding our own custom logic.

32. What is Custom controller?

Custom Controller: A custom controller is a class written in Apex that implements all of a page logic.

  • If we use custom controller, we can define new navigation elements or behaviors, but we must also reimplement any functionality that was already provided in a standard controller.

33. What is the difference between the Workflow and Approval Process?

Workflow rules and Approval Processes can be used together.

Workflow RulesApproval Processes
Are Triggered upon SaveAre triggered only when a user clicks “Submit for Approval” button.
Consists of one set of criteria and actionsConsists of multiple steps
 Have an entry criteru8a, step criteria and step actions.
 Have Initial submission action, rejection and approval actions and action for each step
Can be modified or deleted.Some attributes can’t be modified processes must be deactivated before they can be deleted.

Bookmark our website to check salesforce interview questions and answers, sfdc interview questions and answers 2014, 2015 in PDF format, Salesforce interview answers, Salesforce interview questions for admin, Salesforce interview questions for developers.