Pre-Winter Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Salesforce Certified B2C Commerce Developer Comm-Dev-101 Question # 17 Topic 2 Discussion

Salesforce Certified B2C Commerce Developer Comm-Dev-101 Question # 17 Topic 2 Discussion

Comm-Dev-101 Exam Topic 2 Question 17 Discussion:
Question #: 17
Topic #: 2

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 product is {0} with name {1} ' ,myProduct.getID(),myProduct.getName());


B.

Logger.warn( ' The current product is ${myProduct.getID()} with name ${myProduct.getName()} ' );


C.

Logger.warn( ' The current product is {0} with name {1} ' ).context(myProduct.getID(),myProduct.getName());


Get Premium Comm-Dev-101 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.