Our Best Offer Ever!! Summer Special - Get 3 Courses at 24,999/- Only. Read more
Hire Talent (HR):+91-9791 444 054

General

StringBuffer in Java

StringBuffer in Java

StringBuffer in Java

  • StringBuffer will represent the sequence of characters.
  • It is the same line String, but the difference in the nature of the string and string buffer.
  • A StringBuffer is mutable whereas StringBuffer is immutable in nature.
  • Once we create a string object, we cannot manipulate on the string object. We can manipulate the String buffer object.
  • A string buffer is growable in nature – Dynamically we can increase and decrease the size of the buffer
  • Creating a String buffer

Syntax

StringBuffer sb=new StringBuffer();

String Buffer

Click Here-> Get Java Training with Real-time Projects

Besant Technologies WhatsApp