Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 34 Topic 4 Discussion

Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 34 Topic 4 Discussion

PDI Exam Topic 4 Question 34 Discussion:
Question #: 34
Topic #: 4

The orderHelper class is a utility class that contains business logic for processing orders. Consider the following code snippet:

Public class without sharing orderHelper {// code implementation

}

A developer needs to create a constant named delivery_multiplier with a value of 4.15. The value of the constant should not change at any time in the code.

How should the developer declare the delivery multiplier constant to meet the business objectives?


A.

static decimal DELIVERY_MULTIPLIER = 4.15;


B.

constant decimal DELIVERY_MULTIPLIER = 4.15;


C.

static final decimal DELIVERY_MULTIPLIER = 4.15;


D.

decimal DELIVERY_MULTIPLIER = 4.15;


Get Premium PDI Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.