Notifications
Clear all

Which snippet of code should be used?

1 Posts
1 Users
0 Likes
100 Views
(@salterslloyd)
Posts: 746
Noble Member
Topic starter
 

CORRECT TEXT

A developer is asked to write a log containing the ID and name of the product with a variable named

myProduct.

Which snippet of code should be used?

A Logger.warn(‘The current producto is {0} with name {1}’, myProduct.getID(), myProduct.getName());

B Logger.warn(‘The current producto is {0} with name {1}’), context(myProduct.getID(), myProduct.getName());

C Logger.warn(‘The current producto is ${myProduct.getID()} with name ${myProduct.getName()}’);

D Logger.warn(‘The current producto is %s with name %s’), context(myProduct.getID(), myProduct.getName());

Show Answer Hide Answer

Suggested Answer: A
 
Posted : 05/02/2023 3:01 pm

Latest Salesforce Certified B2C Commerce Developer Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: