BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Java StringBuilder delete()

Last Updated: October 4, 2022 by Chaitanya Singh | Filed Under: java

Java StringBuilder delete() method is used to delete a portion of the string. A StringBuilder instance represents a character sequence. We can delete a portion… [Read More]

Tags: Java-StringBuilder

Java StringBuilder trimToSize()

Last Updated: October 4, 2022 by Chaitanya Singh | Filed Under: java

Java StringBuilder trimToSize() method is used to reduce the capacity of StringBuilder instance, if possible. This method checks for non-utilized allocated space, it frees up… [Read More]

Tags: Java-StringBuilder

Java StringBuilder lastIndexOf()

Last Updated: October 4, 2022 by Chaitanya Singh | Filed Under: java

In this tutorial, we will discuss the Java StringBuilder lastIndexOf() method with the help of example programs. The syntax of lastIndexOf() method is: //Returns the… [Read More]

Tags: Java-StringBuilder

Java StringBuilder indexOf()

Last Updated: October 4, 2022 by Chaitanya Singh | Filed Under: java

In this guide, we will discuss the Java StringBuilder indexOf() method with the help of examples. The syntax of indexOf() method is: sb.indexOf(“hello”); //searches string… [Read More]

Tags: Java-StringBuilder

Java StringBuilder ensureCapacity()

Last Updated: October 4, 2022 by Chaitanya Singh | Filed Under: java

In this tutorial, we will discuss the Java StringBuilder ensureCapacity() method with the help of examples. This method ensures that a minimum capacity is maintained…. [Read More]

Tags: Java-StringBuilder

Java StringBuilder substring()

Last Updated: October 4, 2022 by Chaitanya Singh | Filed Under: java

In this tutorial, we will discuss the Java StringBuilder substring() method with the help of examples. The syntax of substring() method is: sb.substring(4) //substring starting… [Read More]

Tags: Java-StringBuilder

Java StringBuilder Class With Examples

Last Updated: December 1, 2024 by Chaitanya Singh | Filed Under: java

StringBuilder in Java is used to create mutable strings. A mutable string is the one which can be modified instead of creating new string instance…. [Read More]

Tags: Java-StringBuilder, Java-Strings

Java StringBuilder charAt()

Last Updated: October 3, 2022 by Chaitanya Singh | Filed Under: java

In this tutorial, we will discuss the Java StringBuilder charAt() method with the help of examples. The syntax of charAt() method is: sb.charAt() Here, sb… [Read More]

Tags: Java-StringBuilder

Java StringBuilder capacity() Method

Last Updated: October 7, 2022 by Chaitanya Singh | Filed Under: java

Java StringBuilder capacity() method returns the current capacity of StringBuilder object. In this tutorial, we will discuss the capacity() method in detail with the help… [Read More]

Tags: Java-StringBuilder

Java StringBuilder append() Method

Last Updated: October 6, 2022 by Chaitanya Singh | Filed Under: java

The append() method of Java StringBuilder class is used to append a specified value at the end of this character sequence. Syntax of append() Method:… [Read More]

Tags: Java-StringBuilder

StringBuilder append() null values as “null” String

Last Updated: October 6, 2022 by Chaitanya Singh | Filed Under: java

While working with StringBuilder you may have come across a strange behaviour of append() method for null values. If you append a null value to… [Read More]

Tags: Java-StringBuilder

How to append a newline to StringBuilder

Last Updated: October 6, 2022 by Chaitanya Singh | Filed Under: java

There are following two ways to append a new Line to a StringBuilder object:1) StringBuilder.append(“\n”);2) StringBuilder.append(System.getProperty(“line.separator”)); Example In this example we have a StringBuilder object… [Read More]

Tags: Java-StringBuilder

  • « Previous Page
  • 1
  • 2

Java Tutorial

Java Introduction

  • Java Index
  • Java Introduction
  • History of Java
  • Features of Java
  • C++ vs Java
  • JDK vs JRE vs JVM
  • JVM - Java Virtual Machine
  • First Java Program
  • Variables
  • Data Types
  • Operators

Java Flow Control

  • Java If-else
  • Java Switch-Case
  • Java For loop
  • Java while loop
  • Java do-while loop
  • Continue statement
  • break statement

Java Arrays

  • Java Arrays

OOPs Concepts

  • OOPs Concepts
  • Constructor
  • Java String
  • Static keyword
  • Inheritance
  • Types of inheritance
  • Aggregation
  • Association
  • Super Keyword
  • Method overloading
  • Method overriding
  • Overloading vs Overriding
  • Polymorphism
  • Types of polymorphism
  • Static and dynamic binding
  • Abstract class and methods
  • Interface
  • Abstract class vs interface
  • Encapsulation
  • Packages
  • Access modifiers
  • Garbage Collection
  • Inner classes
  • Static import
  • Static constructor

Java Exception Handling

  • Exception handling
  • Java try-catch
  • Java throw
  • Java throws
  • Checked and Unchecked Exceptions
  • Jav try catch finally
  • Exception Examples
  • Exception Propagation

Collections Framework

  • Collections in Java
  • Java ArrayList
  • Java LinkedList
  • Java Vector
  • Java HashSet
  • Java LinkedHashSet
  • Java TreeSet
  • Java HashMap
  • Java TreeMap
  • Java LinkedHashMap
  • Java Queue
  • Java PriorityQueue
  • Java Deque
  • Comparable interface
  • Comparator interface
  • Collections Interview Questions

MORE ...

  • Java Scanner Class
  • Java 8 Features
  • Java 9 Features
  • Java Conversion
  • Java Date
  • Java Multithreading
  • Java I/O
  • Java Serialization
  • Java Regex
  • Java AWT
  • Java Swing
  • Java Enum
  • Java Annotations
  • Java main method
  • Java Interview Q

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap