---
title: "What is String-builder?"  
description: "What is String-builder?"  
author: "Om ji mishra"  
published: 2019-10-28  
updated: 2019-10-28  
canonical: https://www.mindstick.com/forum/135441/what-is-string-builder  
category: "c#"  
tags: ["c#", "programming language"]  
reading_time: 1 minute  

---

# What is String-builder?

What is [String](https://www.mindstick.com/articles/1527/string-split-in-c-sharp)-[builder](https://www.mindstick.com/articles/12472/mgs-front-end-builder-for-magento-2-best-selling-product-on-magento-marketplace)?

## Replies

### Reply by Om ji mishra

A string that we can change is called a StringBuilder. In this case, if we create any string object then we can perform any operation like insert, replace, etc. without creating a new instance for every time. It will update string at one place in memory doesn't create new space in memory.

Code:-

```
using System;
using System.Text;

class GFG {
   public static void Main(String[] args)
    {
        String str = "OM ";
StringBuilder sbl = new StringBuilder(str);
        sbl.Append("JI MISHRA");
        Console.WriteLine(sbl);
    }
}
```

```
Output:-OM JI MISHRA
```


---

Original Source: https://www.mindstick.com/forum/135441/what-is-string-builder

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
