約 54 件の結果
リンクを新しいタブで開く
  1. Difference between StringBuilder and StringBuffer - Stack Overflow

    2008年12月10日 · What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when deciding on any one of these?

  2. java - String, StringBuffer, and StringBuilder - Stack Overflow

    StringBuilder is a mutable class that can be appended to, characters replaced or removed and ultimately converted to a String StringBuffer is the original synchronized version of …

  3. c# - String vs. StringBuilder - Stack Overflow

    2008年9月16日 · I understand the difference between String and StringBuilder (StringBuilder being mutable) but is there a large performance difference between the two? The program I’m …

  4. string - When to use StringBuilder in Java - Stack Overflow

    It is supposed to be generally preferable to use a StringBuilder for string concatenation in Java. Is this always the case? What I mean is this: Is the overhead of creating a StringBuilder object,

  5. java - Why StringBuilder when there is String? - Stack Overflow

    The StringBuilder class is mutable and unlike String, it allows you to modify the contents of the string without needing to create more String objects, which can be a performance gain when …

  6. c# - How to use StringBuilder wisely? - Stack Overflow

    A StringBuilder object maintains a buffer to accommodate the concatenation of new data. New data is appended to the end of the buffer if room is available; otherwise, a new, larger buffer is …

  7. Why would you use a StringBuilder method over a String in Java?

    2021年10月14日 · What are the benefits of using a StringBuilder method over a String? Why not just amend the content within a String? I understand that a StringBuilder is mutable, but if you …

  8. c# - When to use StringBuilder? - Stack Overflow

    Using StringBuilder you modify the actual content of the object without allocating a new one. So use StringBuilder when you need to do many modifications on the string.

  9. Why is StringBuilder much faster than String? - Stack Overflow

    2014年3月16日 · 15 Why is StringBuilder much faster than string concatenation using the + operator? Even though that the + operator internally is implemented using either StringBuffer or …

  10. Is String.Format as efficient as StringBuilder - Stack Overflow

    2008年8月9日 · The performance of a concatenation operation for a String or StringBuilder object depends on how often a memory allocation occurs. A String concatenation operation always …