About 19,700 results
Open links in new tab
  1. Java Strings - GeeksforGeeks

    Aug 3, 2026 · A String in Java is an object used to store a sequence of characters enclosed in double quotes. It uses UTF-16 …

  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, …

  3. String (Java SE 25 & JDK 25) - docs.oracle.com

    The class String includes methods for examining individual characters of the sequence, for comparing strings, for searching strings, …

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

    The class String includes methods for examining individual characters of the sequence, for comparing strings, for searching strings, …

  5. Declaring Strings in Java: A Comprehensive Guide

    Jan 16, 2026 · Understanding how to declare strings in Java is the first step towards effectively working with text data. In this blog, …

  6. Declaring Strings in Java: A Comprehensive Guide - javaspring.net

    Jan 16, 2026 · Understanding how to declare strings in Java is the first step towards harnessing their power effectively. This blog …

  7. Java String declaration - Stack Overflow

    For the record, there are scenarios where new String (String) makes sense, like if you have a very large string and you're only …

  8. Java Strings - How to Declare String in Java With Examples - Edureka

    Feb 13, 2025 · A string is an object that represents a sequence of characters. Read this article and know how to declare string in …

  9. Java Variables - W3Schools

    If you don't want others (or yourself) to overwrite existing values, use the final keyword (this will declare the variable as "final" or …

  10. How to Initialize and Compare Strings in Java? - GeeksforGeeks

    Jul 23, 2025 · Immutability creates two general ways of initialization with strings in Java using the String Pool. This article will cover …