🌐
W3Schools
w3schools.com › java › java_strings.asp
Java Strings
A String in Java is actually an object, which means it contains methods that can perform certain operations on strings. For example, you can find the length of a string with the length() method:
🌐
Programiz
programiz.com › java-programming › string
Java String (With Examples)
January 31, 2024 - In Java, a string is a sequence of characters. For example, "hello" is a string containing a sequence of characters 'h', 'e', 'l', 'l', and 'o'. In this tutorial, we will learn about strings in Java with the help of examples.
Discussions

manipulating strings in Java
There are indeed usually many ways to achieve the same result in programming. But some ways better than the other and it takes time and experience to figure which. When it comes to strings, there are several things to keep in mind. Strings are immutable. Don't use new String(xxx) constructor, it was a design mistake. If you need to do a lot of modifications to a string, especially in a loop, it's advised to use StringBuilder, it works faster. Be careful when there can be non-English characters or Unicode emotes in the string. In these cases charAt and length might return not what you think. Most of the time however we just pass strings around, so these things don't come up too often. More on reddit.com
🌐 r/learnjava
6
2
February 20, 2024
What Every Java Developer should know about String
[String.split() is] particularly useful if you dealing with comma separated file (CSV) and wanted to have individual part in a String array. No. Fuck you to hell if you parse CSV this way. It will break, and it will all be your fault. CSV allows for commas to be inside the records as long as they're quoted (or escaped), so a line in a CSV file could look like this: "There is only one record on this line. Because it has commas inside quotes, it is one single, unbroken record" String.split() will parse that line wrong. More on reddit.com
🌐 r/java
43
49
January 7, 2014
Strings are pain for a beginner - Linking the materials that ...
The exam was also done entirely ... syntax highlighting, or compiler to catch mistakes. I've struggled a lot with confidence and feeling like maybe I'm not actually good at programming, so seeing 100/100 genuinely almost made me cry. Obviously one exam doesn't mean I've mastered Java, and I know ... More on reddit.com
🌐 r/learnjava
Java Strings are pain for a beginner - Linking the materials that helped me
Check OP's post history. More on reddit.com
🌐 r/learnprogramming
1
0
July 9, 2025
🌐
W3Schools
w3schools.com › java › java_ref_string.asp
Java String Reference
The String class has a set of built-in methods that you can use on strings.
🌐
Edureka
edureka.co › blog › java-string
Java Strings - How to Declare String in Java With Examples
February 13, 2025 - Java String ValueOf(): This method converts different types of values into string.Using this method, you can convert int to string, long to string, Boolean to string, character to string, float to string, double to string, object to string and char array to string. The signature or syntax of string ...
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-string-programs
Java String Programs - GeeksforGeeks
October 7, 2025 - It is one of the most commonly used data types in the Java programming language. Strings are immutable, so their values cannot be changed once created.
🌐
Oracle
docs.oracle.com › javase › tutorial › java › data › strings.html
Strings (The Java™ Tutorials > Learning the Java Language > Numbers and Strings)
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases. See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases. Strings, which are widely used in Java programming, are a sequence of characters.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › lang › String.html
String (Java Platform SE 8 )
July 21, 2026 - All string literals in Java programs, such as "abc", are implemented as instances of this class. Strings are constant; their values cannot be changed after they are created. String buffers support mutable strings. Because String objects are immutable they can be shared. For example:
🌐
Tutorialspoint
tutorialspoint.com › java › java_strings.htm
Java - String Class
Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated as objects. The Java platform provides the String class to create and manipulate strings.
Find elsewhere
🌐
DataFlair
data-flair.training › blogs › java-string-methods-and-constructor
Java String (Methods & Constructor) with Syntax and Example - DataFlair
May 18, 2026 - Many characters join together to form a string. For example, the letter A is a character or a string. But “ABCD” together is a string only because it has more than one character in it.
🌐
BeginnersBook
beginnersbook.com › 2013 › 12 › java-strings
Java – String Class and Methods with examples
String is a sequence of characters, for e.g. “Hello” is a string of 5 characters. In java, string is an immutable object which means it is constant and can cannot be changed once it is created. In this tutorial we will learn about String class and String methods with examples.
🌐
Medium
medium.com › geekculture › all-about-string-in-java-51ba9e46181a
All About String in Java. Java Strings are objects that are… | by sajith dilshan | Geek Culture | Medium
February 8, 2023 - Java Strings are objects that are backed by a char array and are immutable. The class java.lang.String is used to create a string object. ... A string literal is created by using double quotes. For example:
🌐
YouTube
youtube.com › codewithharry
Java Tutorial: String Methods in Java - YouTube
Java String Methods with Examples: This Java Tutorial video explains different Java String methods associated with the Java String class. Each method is Expl...
Published: September 14, 2020
Views: 1M
🌐
DigitalOcean
digitalocean.com › community › tutorials › java-string
Java String | DigitalOcean
August 3, 2022 - Technical tutorials, Q&A, events — This is an inclusive place where developers can find or lend support and discover new ways to contribute to the community.
🌐
Scaler
scaler.com › home › topics › java › strings in java
String in Java (With Examples) - Scaler Topics
June 21, 2022 - Java String literal can be created and represented using the double-quotes. All of the content/characters can be added in between the double quotes. ... In the above-given example, we have declared a string variable called scalerAcad and initialized it with the string value "Scaler Academy".
🌐
GeeksforGeeks
geeksforgeeks.org › java › strings-in-java
Java Strings - GeeksforGeeks
A string literal is created by assigning a sequence of characters directly to a String variable using double quotes. Java stores string literals in the String Constant Pool, allowing identical string values to share the same object.
Published: 2 weeks ago
🌐
Codecademy
codecademy.com › docs › java › strings
Java | Strings | Codecademy
June 10, 2025 - Strings in Java are immutable objects that represent sequences of characters enclosed in double quotes.
🌐
Simplilearn
simplilearn.com › home › resources › software development › java tutorial for beginners › what are java strings and how to implement them?
What are Java Strings and How To Implement Them
June 14, 2026 - What are Java strings and how do you create them? Learn all about Java strings, the methods based on Java strings, sub strings, and more with example programs.
Address: 5851 Legacy Circle, 6th Floor, Plano, TX 75024 United States
🌐
Software Testing Help
softwaretestinghelp.com › home › java › java string methods tutorial with examples
Java String Methods Tutorial With Examples
April 1, 2025 - This Tutorial Explains Different Java String Methods associated with the Java String class. Each method is Explained with a brief Description, Syntax and an Example:
🌐
TheServerSide
theserverside.com › definition › Java-string
Java string
Below is one simple syntax for creating a Java string. ... In this example, "Hello world!" is a string literal, which is a series of characters encased in quotation marks.
Published: November 22, 2025
🌐
TechVidvan
techvidvan.com › tutorials › java-strings
Java Strings - Learn the Essential Methods with its Syntax! - TechVidvan
February 15, 2020 - Java provides a String class to manipulate and perform operations on strings. In this article, we have studied the String class which belongs to java.lang package. We also covered the essential methods useful while dealing with Strings along with their syntax and sample codes.