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 CRT-450 Topic 3 Question 40 Discussion

Actual exam question for Salesforce's CRT-450 exam
Question #: 40
Topic #: 3
[All CRT-450 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:

Lovetta
27 days ago
Option C, no doubt. Don't want the delivery guy charging extra 'cause someone changed the multiplier, am I right?
upvoted 0 times
Kristofer
2 days ago
Definitely, we need that constant value.
upvoted 0 times
...
Gerald
10 days ago
I agree, option C is the way to go.
upvoted 0 times
...
...
Vincent
1 months ago
Option D is just asking to be changed accidentally. Gotta go with C to keep that value locked down.
upvoted 0 times
Arlette
6 days ago
I agree, option C is the best choice to keep the value of the constant locked down.
upvoted 0 times
...
...
Leonie
2 months ago
Hmm, I'm not sure. Option B seems more explicit about it being a constant, but Option C also looks valid.
upvoted 0 times
Herminia
25 days ago
User2: I agree, it explicitly states that it's a constant.
upvoted 0 times
...
Katie
30 days ago
User1: I think Option B is the correct one.
upvoted 0 times
...
Leslie
1 months ago
User2: I agree, it explicitly states that it's a constant.
upvoted 0 times
...
Florinda
1 months ago
User1: I think Option B is the correct one.
upvoted 0 times
...
...
Lamar
2 months ago
I'm not sure, but I think B) constant decimal DELIVERY_MULTIPLIER = 4.15; could also work.
upvoted 0 times
...
Brandon
2 months ago
I'm going with Option A. 'static' is enough to make the variable a class-level constant that won't change.
upvoted 0 times
Cory
10 days ago
Great, Option A it is then!
upvoted 0 times
...
Alba
13 days ago
That makes sense, it ensures the value won't change.
upvoted 0 times
...
Lauran
15 days ago
I agree, 'static' is used to create class-level constants.
upvoted 0 times
...
Wilda
1 months ago
I think Option A is the correct choice.
upvoted 0 times
...
...
Terrilyn
2 months ago
Option C looks good to me. The 'static final' keyword makes the constant immutable and accessible across the class.
upvoted 0 times
...
Vicente
2 months ago
I agree with Gracia. Using static final ensures the value won't change.
upvoted 0 times
...
Gracia
2 months ago
I think the answer is C) static final decimal DELIVERY_MULTIPLIER = 4.15;
upvoted 0 times
...

Save Cancel