Last updated: Feb 22, 2022

Strings

String is a sequence of characters, For example: "hello" is a string containing a sequence of characters 'h' , 'e' , 'l' , 'l' , and 'o' . We use double quotes to represent a string in Java.In java, string is an immutable object which means it is constant and can not be changed once it has been created.
Why String is Immutable in Java? EASY
Discover why strings are immutable in Java, explore immutable objects, and learn about string memory usage and syntax.
String Comparison EASY
This blog explains the details of different methods used for String comparison along with their syntax and examples.
String Concatenation in Java EASY
This blog explains the details of different approaches used for String concatenation along with their syntax and examples.
String Class Methods EASY
This blog contains the string class methods of the java programming language. Various examples are presented in the blog to explain the concept in detail.
Strings vs StringBuffer EASY
This blog explains the differences between String and StringBuffer, as well as a performance test to see how long they take to execute.
How to Convert String to Long in Java EASY
This article will explain the different methods to accomplish this conversion. We'll learn this conversion using different methods like the parseLong() method, the valueOf() method, and the constructor of the Long class.
Convert String to Array in Java EASY
In this article, we'll discuss different methods of converting a string to an array in Java. We'll explain how to use the toCharArray() method, split() method, StringTokenizer class and manually convert each character.
How to Declare String in Java? EASY
In this article, we will learn what strings are, how to create them, and the different interfaces & classes related to strings in Java.
Difference between Comparing string using == and .equals() Method in Java
In this article, we'll learn about the differences between using == and .equals() for string comparison in Java. We'll discuss the basics of each approach, with code examples, and will see when to use each one.
How to Convert String to Json Object in Java EASY
In this article, we will learn how to convert a JSON string to a JSON object in Java using various libraries like Gson, JSON-Simple & Jackson. We will also see a complete code example of this conversion process.
StringBuffer Class
 In this blog, we will cover StringBuffer Class.
Difference between StringBuffer and StringBuilder Class EASY
In this article, we will learn about StringBuffer and StringBuilder classes and their differences with different code examples.
StringBuilder Class in Java
Discover the StringBuilder class in Java, its syntax, constructors, and methods. This article provides detailed examples to enhance your understanding of StringBuilder in Java.
How to Declare String Array in Java EASY
In this article, we will look into the process of declaring, initializing, and working with string arrays in Java. We'll discuss many different techniques and use cases and why it is useful.
StringTokenizer in Java EASY
StringTokenizer in Java is a legacy class used to break a string into tokens based on delimiters, though String.split() is now preferred.
StringUtils IsEmpty EASY
This article will discuss the IsEmpty method of StringUtils class. We will learn to use the IsEmpty method to check if a CharSequence is empty or null.
Java Convert String to Boolean MEDIUM
This article discusses the concept to change string to boolean and ways to convert string to boolean in Java and Javascript.
Special String Operations in Java EASY
This article explains all the special string operations in Java String class with the help of various examples and programs.
How to convert String to Float in Java? EASY
In this article, learn how to convert string to float in Java and float to string in Java with examples.
Author Manshi
0 upvotes
Strings in Java EASY
Explore strings in Java with examples. Learn to create strings in various ways and understand Java string classes, including StringBuffer and StringBuilder.

String Methods in Java

Java has a lot of String methods that allow us to work with strings.Here you will find all the string methods available in Java.
String charAt() EASY
This blog contains the string class method charAt() description of the java programming language. Various examples are presented in the blog to explain the concept in detail.
Author Aditi
0 upvotes
String compareTo EASY
This blog contains the string class method compareTo() description of the java programming language. Various examples are presented in the blog to explain the concept in detail.
Author Aditi
0 upvotes
Java String contains() Method EASY
Java contains() method checks whether a string contains a sequence of characters. Returns true if the characters exist and false if not.
String endsWith()
In this article, we will learn about the concept of the string endsWith() method in java with the help of code examples.
String equals() in Java EASY
In this blog, we will learn the string equals() method in Java in detail, along with its syntax and examples.
Java String equalsIgnoreCase() Method EASY
The equalsIgnoreCase() method in Java is used to compare two strings, ignoring case differences. In this article we will learn Java equalsIgnoreCase() in detail.
Java String format() EASY
In this article, we will learn about the concept of the string format() method with the help of code examples.
String Manipulation in Java EASY
String manipulation in Java refers to the process of modifying or working with strings, which are sequences of characters.
String getBytes() in Java EASY
This blog will be containing a detailed discussion on the String getChars() method in Java Programming. We will be learning its syntax, parameters, and return type with the help of an example.
Java String getChars() Method EASY
This blog will be containing a detailed discussion on the String getChars() method in Java Programming. We will be learning its syntax, parameters, and return type with the help of an example.
Java String indexOf() EASY
The indexOf() method in Java returns the index of the first occurrence of a specified character or substring in a string. It returns -1 if not found.
Java String intern() Method EASY
This blog will be containing a detailed discussion on the String intern() method in Java Programming. We will be learning its syntax, working, parameters, and return type with the help of an example.
String isEmpty() EASY
This blog will demonstrate the functioning of the isEmpty() function of Strings along with the examples.
String Join() EASY
This blog offers a detailed guide on understanding the Join() method of the String class in Java programming languages, with examples. To know more about it, read on!
String lastIndexOf() EASY
This blog demonstrates the use of String lastIndexOf() function in Java with examples.
Java String Length() Method EASY
This article will discuss the java string length() method. We will see what the syntax is and the parameters required in Java's string length() method.
String replace( ) EASY
In this article, we will discuss the String replace method in java, its syntax, and implementation, and we will see some examples.
Java String replaceall()
In this blog, we will be discussing the java string replaceall() function.
String split() in Java
This blog talks about the string split() method in Java.
String startsWith() in Java MEDIUM
In Java, the startsWith() method is used to check whether a string starts with a specific prefix. It can be called on any string and returns a boolean value (true or false), depending on whether the string starts with the given prefix.
String substring() in Java EASY
This blog tells us about string substring() method in Java.
String toCharArray() in Java
This blog gives a complete demonstration of Java String toCharArray() function in Java with examples.
Java String toLowerCase() method MEDIUM
The toLowerCase() method in Java converts all characters in a string to lowercase, returning a new string without modifying the original.
String toUpperCase()
This blog gives a complete demonstration of String toUpperCase() function in Java with examples.
Java String trim() Method
In this article, we will learn about the Java String trim() Method and how to use it. We will also see some examples to understand this method's working properly.
String valueOf() in Java EASY
In Java, the String.valueOf() method is a static method used to convert different types of data into their corresponding String representation.
What is String Args[] in Java? EASY
After completing this article, you will master the string args in Java. We will discuss the need and examples of string args in Java.