Java — Difference between String VS StringBuffer | Code Factory

Index Page : Link

Donate : Link

  • String objects are immutable, not changed
  • StringBuffer objects are mutable, changed
  • After creating String object, it can not be changed but in StringBuffer it can be easily changed.
package com.example.string;