Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Java
10.1k+ articles
Difference Between
4.2k+ articles
Java-Functions
4.1k+ articles
Strings
3.2k+ articles
Java-lang package
380+ articles
java-basics
310+ articles
Java-Strings
220+ articles
Java-String-Programs
130+ articles
Java-StringBuilder
35 articles
java-StringBuffer
37 posts
Popular Articles
Recent Articles
Remove first and last character of a string in Java
Last Updated: 24 February 2025
Given a string str, the task is to write the Java Program to remove the first and the last character of the string and print the modified st
...read more
Strings
Java Programs
Java-StringBuilder
java-StringBuffer
Java-String-Programs
strings
DSA
Remove leading zeros from a Number given as a string
Last Updated: 05 October 2022
Given numeric string str, the task is to remove all the leading zeros from a given string. If the string contains only zeros, then print a s
...read more
Strings
Pattern Searching
Mathematical
java-StringBuffer
regular-expression
DSA
StringBuffer vs StringBuilder in Java
Last Updated: 15 October 2024
Java provides three classes to represent the sequence of characters i.e. String, StringBuffer, and StringBuilder. A string is immutable in J
...read more
Java
Difference Between
Java-StringBuilder
java-StringBuffer
Similar Topics
DSA
22.3k+ articles
Java
10.1k+ articles
Difference Between
4.2k+ articles
Java-Functions
4.1k+ articles
Strings
3.2k+ articles
Java-lang package
380+ articles
java-basics
310+ articles
Java-Strings
220+ articles
Java-String-Programs
130+ articles
Java-StringBuilder
35+ articles
Java Strings
Last Updated: 08 April 2025
In Java, a String is the type of object that can store a sequence of characters enclosed by double quotes, and every character is stored in
...read more
Java
Java-Strings
Java-StringBuilder
java-StringBuffer
StringBuffer toString() method in Java with Examples
Last Updated: 04 December 2018
The toString() method of StringBuffer class is the inbuilt method used to returns a string representing the data contained by StringBuffer O
...read more
Java
java-basics
Java-lang package
Java-Functions
java-StringBuffer
StringBuffer replace() Method in Java with Examples
Last Updated: 13 December 2021
The StringBuffer.replace() is the inbuilt method which is used to replace the characters in a substring of this sequence with the characters
...read more
Java
Java-Strings
Java-lang package
Java-Functions
java-StringBuffer
StringBuffer append() Method in Java with Examples
Last Updated: 02 January 2023
Pre-requisite: StringBuffer class in JavaThe java.lang.StringBuffer.append() method is used to append the string representation of some argu
...read more
Java
Java-lang package
Java-Functions
java-StringBuffer
StringBuffer delete() Method in Java with Examples
Last Updated: 02 February 2022
The java.lang.StringBuffer.delete() is an inbuilt method in Java which is used to remove or delete the characters in a substring of this seq
...read more
Java
Java-Strings
Java-lang package
Java-Functions
java-StringBuffer
StringBuffer appendCodePoint() Method in Java with Examples
Last Updated: 08 June 2022
appendCodePoint() method of StringBuffer class appends the string representation of the codePoint argument to this sequence for which we req
...read more
Java
Java-Strings
Java-lang package
Java-Functions
java-StringBuffer
StringBuffer deleteCharAt() Method in Java with Examples
Last Updated: 06 December 2018
The Java.lang.StringBuffer.deleteCharAt() is a built-in Java method which removes the char at the specified position in this sequence. So th
...read more
Java
Java-Strings
Java-lang package
Java-Functions
java-StringBuffer
StringBuffer reverse() Method in Java with Examples
Last Updated: 04 August 2022
The Java.lang.StringBuffer.reverse() is an inbuilt method that is used to reverse the characters in the StringBuffer. The method causes this
...read more
Java
Java-Strings
Java-lang package
Java-Functions
java-StringBuffer
StringBuffer insert() in Java
Last Updated: 05 December 2024
The StringBuffer.insert() method in Java allows us to insert a string representation of a given data type at a specified position in a Strin
...read more
Java
Java-Strings
Java-lang package
Java-Functions
java-StringBuffer
equals() on String and StringBuffer objects in Java
Last Updated: 08 July 2021
Consider the following codes in java:[tabby title="Java"][sourcecode language="Java"]// This program prints falseclass GFG { public static
...read more
Java
Java-Strings
java-StringBuffer
Java-String-Programs
StringBuffer Class in Java
Last Updated: 18 April 2025
The StringBuffer class in Java represents a sequence of characters that can be modified, which means we can change the content of the String
...read more
Java
Java-Strings
Java-lang package
java-StringBuffer
String vs StringBuilder vs StringBuffer in Java
Last Updated: 16 January 2025
A string is a sequence of characters. In Java, objects of String are immutable which means a constant and cannot be changed once created. In
...read more
Java
Java-Strings
School Programming
Difference Between
Java-StringBuilder
java-StringBuffer
1
2
3
>>
Last
1
2
3
>>
Last
1
2
3
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !