What should you do?

You are an enterprise application developer. You are developing a component to contain a large number of properties. You plan to write a method in the component that will accept an object as a parameter. The method will return a formatted string representation of all property values of the object. You need to implement the method by ensuring the minimum amount of memory usage.
What should you do?

You are an enterprise application developer. You are developing a component to contain a large number of properties. You plan to write a method in the component that will accept an object as a parameter. The method will return a formatted string representation of all property values of the object. You need to implement the method by ensuring the minimum amount of memory usage.
What should you do?

A.
Concatenate property values to a string, and return the string.

B.
Append all property values to StringBuilder, and return a string.

C.
Create a string array of property values, and use an XSLT transform to return the string.

D.
Use a custom TypeConverter that converts the business object type to a string, and return the string.



Leave a Reply 0

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