Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
1 months ago
Option C, no doubt. Don't want the delivery guy charging extra 'cause someone changed the multiplier, am I right?
upvoted 0 times
Kayleigh
5 days ago
Exactly, option C ensures the value stays constant.
upvoted 0 times
...
Sean
8 days ago
Can't risk any changes to the delivery cost.
upvoted 0 times
...
Kristofer
11 days ago
Definitely, we need that constant value.
upvoted 0 times
...
Gerald
19 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
Eveline
4 days ago
Yeah, option D is risky. Option C is the safest bet to prevent accidental changes.
upvoted 0 times
...
Arlette
15 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
1 months ago
User2: I agree, it explicitly states that it's a constant.
upvoted 0 times
...
Katie
1 months 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
2 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
19 days ago
Great, Option A it is then!
upvoted 0 times
...
Alba
22 days ago
That makes sense, it ensures the value won't change.
upvoted 0 times
...
Lauran
24 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
3 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
3 months ago
I agree with Gracia. Using static final ensures the value won't change.
upvoted 0 times
...
Gracia
3 months ago
I think the answer is C) static final decimal DELIVERY_MULTIPLIER = 4.15;
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77