About 1,620,000 results
Open links in new tab
  1. Java Data Types - W3Schools

    Data types are divided into two groups: Primitive data types - includes byte, short, int, long, float, double, boolean and char; Non-primitive data types - such as String, Arrays and Classes (you …

  2. Java Strings - W3Schools

    Strings are used for storing text. A String variable contains a collection of characters surrounded by double quotes: A String in Java is actually an object, which contain methods that can …

  3. Java Strings - GeeksforGeeks

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

  4. Java Data Types - GeeksforGeeks

    Apr 7, 2025 · Examples of Non-primitive data types are String, Array, Class, Interface, and Object. The table below demonstrates the difference between Primitive and Non-Primitive Data types. …

  5. 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, for extracting substrings, and for creating a copy of a …

  6. In Java, why is String a non-primitive data type? - Stack Overflow

    String is non-primitive because only class can have methods. Primitive can not. And String need many functions to be called upon while processing like substring, indexof, equals, …

  7. Primitive Data Types (The Java™ Tutorials - Oracle

    In addition to int, the Java programming language supports seven other primitive data types. A primitive type is predefined by the language and is named by a reserved keyword. Primitive …

  8. String Data Type in Java - PrepInsta

    String is a Special Data type in java which is used to define a sequence of characters having a storage width equal to 2.14 Billion. In simple Language we can say that strings are the …

  9. Java String (Text) Data Type | Useful Codes

    Jan 9, 2025 · In Java, the String data type is a sequence of characters used to represent text. Unlike many programming languages where strings are treated as primitive data types, Java …

  10. String Data Type in Java - Know Program

    The string data type in Java is used for representing a sequence of characters placed in double quotation marks (""). It means for storing a sequence of characters as one group we must …

Refresh