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:

Leonie
15 days 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
...
Lamar
18 days ago
I'm not sure, but I think B) constant decimal DELIVERY_MULTIPLIER = 4.15; could also work.
upvoted 0 times
...
Brandon
19 days 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
...
Terrilyn
19 days ago
Option C looks good to me. The 'static final' keyword makes the constant immutable and accessible across the class.
upvoted 0 times
...
Vicente
19 days ago
I agree with Gracia. Using static final ensures the value won't change.
upvoted 0 times
...
Gracia
25 days ago
I think the answer is C) static final decimal DELIVERY_MULTIPLIER = 4.15;
upvoted 0 times
...

Save Cancel