About 396,000 results
Open links in new tab
  1. Java Strings - GeeksforGeeks

    May 6, 2025 · There are two ways to create a string in Java: Syntax: <String_Type> <string_variable> = "<sequence_of_string>"; 1. String literal (Static Memory) To make Java …

  2. Java Strings - W3Schools

    A String in Java is actually an object, which contain methods that can perform certain operations on strings. For example, the length of a string can be found with the length() method:

  3. Java Strings - Online Tutorials Library

    Java Strings - Learn about Java Strings, their methods, and how to manipulate text in Java programming. Explore examples and best practices for effective string handling.

  4. 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'. We use double quotes to represent a string in …

  5. Strings (The Java™ Tutorials > Learning the Java Language - Oracle

    Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects. The Java platform provides the String class to …

  6. JavaString Class and Methods with examples - BeginnersBook

    Oct 25, 2022 · In this tutorial we will learn about String class and String methods with examples. There are two ways to create a String in Java. 1. String literal. A string literal is a sequence of …

  7. Java Strings - How to Declare String in Java With Examples

    Feb 13, 2025 · The java.lang.String class is used to create a Java string object. What is a Java String? There are two ways to create a String object: By string literal : Java String literal is …

  8. Java String Tutorial - HowToDoInJava

    Aug 15, 2024 · Learn to create strings, methods, comparisons, formatting and various conversions with simple and easy to follow Java examples. A String in Java represents an …

  9. Strings in Java - Sanfoundry

    Learn everything about Strings in Java, including creation, manipulation, StringBuilder vs. StringBuffer, common methods, and regex. Easy explanations with examples!

  10. Java String: A Guide to String Basics, Methods, Immutability ...

    String Creation: Strings can be created using either string literals or the new keyword. Creating strings with literals promotes reusing existing objects from the String Pool, whereas the new …

Refresh