About 1,180,000 results
Open links in new tab
  1. Java String (With Examples) - Programiz

    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 …

  2. Java Strings - W3Schools

    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:

  3. Java Strings - GeeksforGeeks

    Nov 12, 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 16 bits, i.e., using UTF 16-bit encoding. A string …

  4. String (Java Platform SE 8 ) - Oracle Help Center

    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 …

  5. Java - String Class - Online Tutorials Library

    In Java programming language, strings are treated as objects. The Java platform provides the String class to create and manipulate strings. The most direct way to create a string is to write −. String …

  6. Java String Class - Complete Tutorial with Examples - ZetCode

    Apr 13, 2025 · In this article, we've covered the essential methods of the Java String class with practical examples. Understanding these methods is crucial for effective string manipulation in Java applications.

  7. All About Strings in Java: A Comprehensive Guide with Examples

    Apr 7, 2025 · Strings are a crucial part of Java programming, and understanding how to create and manipulate them efficiently can significantly improve your code’s readability and performance.

  8. String in Java: A Comprehensive Guide with All Methods

    Mar 26, 2025 · String is one of the most widely used classes in Java. It represents a sequence of characters and is immutable, meaning once created, it cannot be changed. This blog will cover …

  9. Strings in Java with Examples - First Code School

    Jun 27, 2024 · Strings in Java are objects designed to hold sequences of character values. Each character is stored using a 16-bit encoding known as UTF-16. In Java, a string functions similarly to …

  10. String [] in Java | Delft Stack

    Oct 12, 2023 · String[] means an array holding a fixed number of strings in Java. The most common use of String[] is when we declare the main method like public static void main(String[] args). This tutorial …