About 1,640,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 will learn more about these in a later chapter)

  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 perform certain operations on strings. For example, the length of a …

  3. Java Strings - GeeksforGeeks

    Apr 8, 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 acts the same as an array of characters.

  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, for extracting substrings, and for creating a copy of a string with all characters translated to uppercase or to lowercase.

  5. What is a Data Type? - W3Schools

    String (text) Integer (whole number) Float (decimal number) Boolean (true or false) In Python and JavaScript, we don't specify the data type when the variable is created, because that happens automatically, but in Java and C++, we need to specify the data type when creating a variable.

  6. Java String (Text) Data Type - useful.codes

    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 differentiates itself by treating strings as objects. This means that a string in Java is an instance of the java.lang.String class.

  7. Java String Data Type With String Buffer And String Builder

    Apr 1, 2025 · This tutorial will explain all about Java String data type, how to create it, immutability, string buffer and builder with examples.

  8. String datatype in java - Stack Overflow

    Apr 19, 2011 · String is a non premitive data type . You can use String as follows. case 1: monthName = "January"; break; case 2: monthName = "February"; break; case 3: monthName = "March"; break; case 4: monthName = "April"; break;

  9. 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 create a String class type referenced variable.

  10. 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 sequence of characters surrounded by double quotes (” “).

  11. Some results have been removed
Refresh