We Offer 100% Job Guarantee Courses (Any Degree / Diploma Candidates / Year GAP / Non-IT / Any Passed Outs). Placement Records
Hire Talent (HR):+91-9707 240 250

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