What is the difference between string and StringBuffer?

In Java programming language, strings are treated as objects. The Java platform provides the String class to create and manipulate strings. Whereas, StringBuffer class is a thread-safe, mutable sequence of characters . A string buffer is like a String, but can be modified.

Sizin İçin Seçtik  Nötralleşme titrasyonu ne demek?

Leave a Reply

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