Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer I Topic 1 Question 97 Discussion

Actual exam question for Salesforce's Platform Developer I exam
Question #: 97
Topic #: 1
[All Platform Developer I Questions]

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

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Phuong
7 days ago
I think option C is the correct answer. The constant should be declared as static final to ensure it cannot be modified throughout the code.
upvoted 0 times
...
Novella
9 days ago
I'm not sure, but I think option A) static decimal DELIVERY_MULTIPLIER = 4.15; could also work. It's static and has the correct value.
upvoted 0 times
...
Alpha
11 days ago
I agree with Crista. Using static final ensures that the value remains constant throughout the code.
upvoted 0 times
...
Crista
19 days ago
I think the correct answer is C) static final decimal DELIVERY_MULTIPLIER = 4.15; because we want the value to be constant and not change.
upvoted 0 times
...

Save Cancel