O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Answers to Self-Review Exercises

16.1 a) True. b) False. strings are immutable; they cannot be modified after they’re created. StringBuilder objects can be modified after they’re created. c) False. EnsureCapacity simply ensures that the current capacity is at least the value specified in the method call. d) True. e) True. f) False. StringBuilder should be used if the string is to be modified. g) False. string method ToUpper creates a new string with all of its letters capitalized.

16.2 a) +, Append, Concat. b) AppendFormat c) ArgumentOutOfRangeException. d) currency.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required