What should you include in the code?

You need to write a method that combines an unknown number of strings. The solution must
minimize the amount of memory used by the method when the method executes.
What should you include in the code?

You need to write a method that combines an unknown number of strings. The solution must
minimize the amount of memory used by the method when the method executes.
What should you include in the code?

A.
The String.Concat method

B.
The StringBuilder.Append method

C.
The + operator

D.
The += operator

Explanation:
A: String.Concat Method

Concatenates one or more instances of String, or the String representations of the values of
one or more instances of Object.



Leave a Reply 5

Your email address will not be published. Required fields are marked *


asdasd

asdasd

B is correct

Stringbuilder is better when the number of string is unknown as well as large amount

Kashish

Kashish

B should be correct!I am writing my exam in next hour or so.

Adam ol

Adam ol

CEVAP B BEYLER

İBRAHİM KIRKAYAK

İBRAHİM KIRKAYAK

CEVAP A CEVAP A