## Uses of Class
java.lang.String

- Packages that use String
  Package | Description
  --- | ---
  java.io |
  java.lang |
  java.lang.annotation |
  java.lang.invoke |
  java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects.
  java.net |
  java.util |

- - ### Uses of String in java.io

    Methods in java.io that return String
    Modifier and Type | Method and Description
    --- | ---
    `String` | InputStreamReader.`getEncoding()` Returns the name of the character encoding being used by this stream.
    > `String` | DataInputStream.`readLine()` Deprecated. This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the `BufferedReader.readLine()` method. Programs that use the `DataInputStream` class to read lines can be converted to use the `BufferedReader` class by replacing code of the form:
    >          DataInputStream d = new DataInputStream(in);
    > with:
    >          BufferedReader d
    >               = new BufferedReader(new InputStreamReader(in));
    `String` | DataInput.`readLine()` Reads the next line of text from the input stream.
    `String` | DataInputStream.`readUTF()` See the general contract of the `readUTF` method of `DataInput`.
    `String` | DataInput.`readUTF()` Reads in a string that has been encoded using a modified UTF-8 format.
    `static String` | DataInputStream.`readUTF(DataInput in)` Reads from the stream `in` a representation of a Unicode character string encoded in modified UTF-8 format; this string of characters is then returned as a `String`.
    `String` | ByteArrayOutputStream.`toString()` Converts the buffer's contents into a string decoding bytes using the platform's default character set.
    `String` | ByteArrayOutputStream.`toString(int hibyte)` Deprecated. This method does not properly convert bytes into characters. As of JDK 1.1, the preferred way to do this is via the `toString(String enc)` method, which takes an encoding-name argument, or the `toString()` method, which uses the platform's default character encoding.
    `String` | ByteArrayOutputStream.`toString(String charsetName)` Converts the buffer's contents into a string by decoding the bytes using the specified `charsetName`.

    Methods in java.io with parameters of type String
    Modifier and Type | Method and Description
    --- | ---
    `String` | ByteArrayOutputStream.`toString(String charsetName)` Converts the buffer's contents into a string by decoding the bytes using the specified `charsetName`.

    Constructors in java.io with parameters of type String
    Constructor and Description
    `EOFException(String s)` Constructs an `EOFException` with the specified detail message.
    `InputStreamReader(InputStream in, String charsetName)` Creates an InputStreamReader that uses the named charset.
    `IOException(String message)` Constructs an `IOException` with the specified detail message.
    `IOException(String message, Throwable cause)` Constructs an `IOException` with the specified detail message and cause.
    `UnsupportedEncodingException(String s)` Constructs an UnsupportedEncodingException with a detail message.
    `UTFDataFormatException(String s)` Constructs a `UTFDataFormatException` with the specified detail message.

  - ### Uses of String in java.lang

    Fields in java.lang with type parameters of type String
    Modifier and Type | Field and Description
    --- | ---
    `static Comparator<String>` | String.`CASE_INSENSITIVE_ORDER` A Comparator that orders `String` objects as by `compareToIgnoreCase`.

    Methods in java.lang that return String
    Modifier and Type | Method and Description
    --- | ---
    `String` | String.`concat(String str)` Concatenates the specified string to the end of this string.
    `static String` | String.`copyValueOf(char[] data)` Returns a String that represents the character sequence in the array specified.
    `static String` | String.`copyValueOf(char[] data, int offset, int count)` Returns a String that represents the character sequence in the array specified.
    `static String` | String.`format(Locale l, String format, Object... args)` Returns a formatted string using the specified locale, format string, and arguments.
    `static String` | String.`format(String format, Object... args)` Returns a formatted string using the specified format string and arguments.
    `String` | Class.`getCanonicalName()` Returns the canonical name of the underlying class as defined by the Java Language Specification.
    `String` | StackTraceElement.`getClassName()` Returns the fully qualified name of the class containing the execution point represented by this stack trace element.
    `String` | StackTraceElement.`getFileName()` Returns the name of the source file containing the execution point represented by this stack trace element.
    `String` | Throwable.`getLocalizedMessage()` Creates a localized description of this throwable.
    `String` | Throwable.`getMessage()` Returns the detail message string of this throwable.
    `String` | StackTraceElement.`getMethodName()` Returns the name of the method containing the execution point represented by this stack trace element.
    `String` | Thread.`getName()` Returns this thread's name.
    `String` | Class.`getName()` Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this `Class` object, as a `String`.
    `String` | Class.`getSimpleName()` Returns the simple name of the underlying class as given in the source code.
    `String` | String.`intern()` Returns a canonical representation for the string object.
    `String` | Enum.`name()` Returns the name of this enum constant, exactly as declared in its enum declaration.
    `String` | String.`replace(char oldChar, char newChar)` Returns a new string resulting from replacing all occurrences of `oldChar` in this string with `newChar`.
    `String` | String.`replace(CharSequence target, CharSequence replacement)` Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence.
    `String` | String.`replaceAll(String regex, String replacement)` Replaces each substring of this string that matches the given regular expression with the given replacement.
    `String` | String.`replaceFirst(String regex, String replacement)` Replaces the first substring of this string that matches the given regular expression with the given replacement.
    `String[]` | String.`split(String regex)` Splits this string around matches of the given regular expression.
    `String[]` | String.`split(String regex, int limit)` Splits this string around matches of the given regular expression.
    `String` | StringBuffer.`substring(int start)`
    `String` | String.`substring(int beginIndex)` Returns a new string that is a substring of this string.
    `String` | StringBuffer.`substring(int start, int end)`
    `String` | String.`substring(int beginIndex, int endIndex)` Returns a new string that is a substring of this string.
    `static String` | Integer.`toBinaryString(int i)` Returns a string representation of the integer argument as an unsigned integer in base 2.
    `static String` | Long.`toBinaryString(long i)` Returns a string representation of the `long` argument as an unsigned integer in base 2.
    `static String` | Double.`toHexString(double d)` Returns a hexadecimal string representation of the `double` argument.
    `static String` | Float.`toHexString(float f)` Returns a hexadecimal string representation of the `float` argument.
    `static String` | Integer.`toHexString(int i)` Returns a string representation of the integer argument as an unsigned integer in base 16.
    `static String` | Long.`toHexString(long i)` Returns a string representation of the `long` argument as an unsigned integer in base 16.
    `String` | String.`toLowerCase()` Converts all of the characters in this `String` to lower case using the rules of the default locale.
    `String` | String.`toLowerCase(Locale locale)` Converts all of the characters in this `String` to lower case using the rules of the given `Locale`.
    `static String` | Integer.`toOctalString(int i)` Returns a string representation of the integer argument as an unsigned integer in base 8.
    `static String` | Long.`toOctalString(long i)` Returns a string representation of the `long` argument as an unsigned integer in base 8.
    `String` | Throwable.`toString()` Returns a short description of this throwable.
    `String` | Thread.`toString()` Returns a string representation of this thread, including the thread's name, priority, and thread group.
    `String` | StringBuilder.`toString()`
    `String` | StringBuffer.`toString()`
    `String` | String.`toString()` This object (which is already a string!) is itself returned.
    `String` | StackTraceElement.`toString()` Returns a string representation of this stack trace element.
    `String` | Short.`toString()` Returns a `String` object representing this `Short`'s value.
    `String` | Object.`toString()` Returns a string representation of the object.
    `String` | Long.`toString()` Returns a `String` object representing this `Long`'s value.
    `String` | Integer.`toString()` Returns a `String` object representing this `Integer`'s value.
    `String` | Float.`toString()` Returns a string representation of this `Float` object.
    `String` | Enum.`toString()` Returns the name of this enum constant, as contained in the declaration.
    `String` | Double.`toString()` Returns a string representation of this `Double` object.
    `String` | Class.`toString()` Converts the object to a string.
    `String` | Character.`toString()` Returns a `String` object representing this `Character`'s value.
    `String` | Character.Subset.`toString()` Returns the name of this subset.
    `String` | CharSequence.`toString()` Returns a string containing the characters in this sequence in the same order as this sequence.
    `String` | Byte.`toString()` Returns a `String` object representing this `Byte`'s value.
    `String` | Boolean.`toString()` Returns a `String` object representing this Boolean's value.
    `static String` | Boolean.`toString(boolean b)` Returns a `String` object representing the specified boolean.
    `static String` | Byte.`toString(byte b)` Returns a new `String` object representing the specified `byte`.
    `static String` | Character.`toString(char c)` Returns a `String` object representing the specified `char`.
    `static String` | Double.`toString(double d)` Returns a string representation of the `double` argument.
    `static String` | Float.`toString(float f)` Returns a string representation of the `float` argument.
    `static String` | Integer.`toString(int i)` Returns a `String` object representing the specified integer.
    `static String` | Integer.`toString(int i, int radix)` Returns a string representation of the first argument in the radix specified by the second argument.
    `static String` | Long.`toString(long i)` Returns a `String` object representing the specified `long`.
    `static String` | Long.`toString(long i, int radix)` Returns a string representation of the first argument in the radix specified by the second argument.
    `static String` | Short.`toString(short s)` Returns a new `String` object representing the specified `short`.
    `String` | String.`toUpperCase()` Converts all of the characters in this `String` to upper case using the rules of the default locale.
    `String` | String.`toUpperCase(Locale locale)` Converts all of the characters in this `String` to upper case using the rules of the given `Locale`.
    `String` | String.`trim()` Returns a copy of the string, with leading and trailing whitespace omitted.
    `static String` | String.`valueOf(boolean b)` Returns the string representation of the `boolean` argument.
    `static String` | String.`valueOf(char c)` Returns the string representation of the `char` argument.
    `static String` | String.`valueOf(char[] data)` Returns the string representation of the `char` array argument.
    `static String` | String.`valueOf(char[] data, int offset, int count)` Returns the string representation of a specific subarray of the `char` array argument.
    `static String` | String.`valueOf(double d)` Returns the string representation of the `double` argument.
    `static String` | String.`valueOf(float f)` Returns the string representation of the `float` argument.
    `static String` | String.`valueOf(int i)` Returns the string representation of the `int` argument.
    `static String` | String.`valueOf(long l)` Returns the string representation of the `long` argument.
    `static String` | String.`valueOf(Object obj)` Returns the string representation of the `Object` argument.

    Methods in java.lang with parameters of type String
    Modifier and Type | Method and Description
    --- | ---
    `StringBuilder` | StringBuilder.`append(String str)`
    `StringBuffer` | StringBuffer.`append(String str)`
    `int` | String.`compareTo(String anotherString)` Compares two strings lexicographically.
    `int` | String.`compareToIgnoreCase(String str)` Compares two strings lexicographically, ignoring case differences.
    `String` | String.`concat(String str)` Concatenates the specified string to the end of this string.
    `static Short` | Short.`decode(String nm)` Decodes a `String` into a `Short`.
    `static Long` | Long.`decode(String nm)` Decodes a `String` into a `Long`.
    `static Integer` | Integer.`decode(String nm)` Decodes a `String` into an `Integer`.
    `static Byte` | Byte.`decode(String nm)` Decodes a `String` into a `Byte`.
    `protected Class<?>` | ClassLoader.`defineClass(String name, byte[] b, int off, int len)` Converts an array of bytes into an instance of class `Class`.
    `boolean` | String.`endsWith(String suffix)` Tests if this string ends with the specified suffix.
    `boolean` | String.`equalsIgnoreCase(String anotherString)` Compares this `String` to another `String`, ignoring case considerations.
    `protected Class<?>` | ClassLoader.`findClass(String name)` Finds the class with the specified binary name.
    `protected Class<?>` | ClassLoader.`findLoadedClass(String name)` Returns the class with the given binary name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with that binary name.
    `protected URL` | ClassLoader.`findResource(String name)` Finds the resource with the given name.
    `protected Enumeration<URL>` | ClassLoader.`findResources(String name)` Returns an enumeration of ``URL`` objects representing all the resources with the given name.
    `static String` | String.`format(Locale l, String format, Object... args)` Returns a formatted string using the specified locale, format string, and arguments.
    `static String` | String.`format(String format, Object... args)` Returns a formatted string using the specified format string and arguments.
    `static Class<?>` | Class.`forName(String className)` Returns the `Class` object associated with the class or interface with the given string name.
    `static Class<?>` | Class.`forName(String name, boolean initialize, ClassLoader loader)` Returns the `Class` object associated with the class or interface with the given string name, using the given class loader.
    `static boolean` | Boolean.`getBoolean(String name)` Returns `true` if and only if the system property named by the argument exists and is equal to the string `"true"`.
    `byte[]` | String.`getBytes(String charsetName)` Encodes this `String` into a sequence of bytes using the named charset, storing the result into a new byte array.
    `protected Object` | ClassLoader.`getClassLoadingLock(String className)` Returns the lock object for class loading operations.
    `Field` | Class.`getDeclaredField(String name)` Returns a `Field` object that reflects the specified declared field of the class or interface represented by this `Class` object.
    `Method` | Class.`getDeclaredMethod(String name, Class<?>... parameterTypes)` Bck2Brwsr emulation can only seek public methods, otherwise it throws a `SecurityException`.
    `Field` | Class.`getField(String name)` Returns a `Field` object that reflects the specified public member field of the class or interface represented by this `Class` object.
    `static Integer` | Integer.`getInteger(String nm)` Determines the integer value of the system property with the specified name.
    `static Integer` | Integer.`getInteger(String nm, int val)` Determines the integer value of the system property with the specified name.
    `static Integer` | Integer.`getInteger(String nm, Integer val)` Returns the integer value of the system property with the specified name.
    `static Long` | Long.`getLong(String nm)` Determines the `long` value of the system property with the specified name.
    `static Long` | Long.`getLong(String nm, long val)` Determines the `long` value of the system property with the specified name.
    `static Long` | Long.`getLong(String nm, Long val)` Returns the `long` value of the system property with the specified name.
    `Method` | Class.`getMethod(String name, Class<?>... parameterTypes)` Returns a `Method` object that reflects the specified public member method of the class or interface represented by this `Class` object.
    `URL` | ClassLoader.`getResource(String name)` Finds the resource with the given name.
    `URL` | Class.`getResource(String name)` Finds a resource with a given name.
    `InputStream` | ClassLoader.`getResourceAsStream(String name)` Returns an input stream for reading the specified resource.
    `InputStream` | Class.`getResourceAsStream(String name)` Finds a resource with a given name.
    `Enumeration<URL>` | ClassLoader.`getResources(String name)` Finds all the resources with the given name.
    `static URL` | ClassLoader.`getSystemResource(String name)` Find a resource of the specified name from the search path used to load classes.
    `static InputStream` | ClassLoader.`getSystemResourceAsStream(String name)` Open for reading, a resource of the specified name from the search path used to load classes.
    `static Enumeration<URL>` | ClassLoader.`getSystemResources(String name)` Finds all resources of the specified name from the search path used to load classes.
    `int` | StringBuilder.`indexOf(String str)`
    `int` | StringBuffer.`indexOf(String str)`
    `int` | String.`indexOf(String str)` Returns the index within this string of the first occurrence of the specified substring.
    `int` | StringBuilder.`indexOf(String str, int fromIndex)`
    `int` | StringBuffer.`indexOf(String str, int fromIndex)`
    `int` | String.`indexOf(String str, int fromIndex)` Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
    `StringBuilder` | StringBuilder.`insert(int offset, String str)`
    `StringBuffer` | StringBuffer.`insert(int offset, String str)`
    `int` | StringBuilder.`lastIndexOf(String str)`
    `int` | StringBuffer.`lastIndexOf(String str)`
    `int` | String.`lastIndexOf(String str)` Returns the index within this string of the last occurrence of the specified substring.
    `int` | StringBuilder.`lastIndexOf(String str, int fromIndex)`
    `int` | StringBuffer.`lastIndexOf(String str, int fromIndex)`
    `int` | String.`lastIndexOf(String str, int fromIndex)` Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the specified index.
    `Class<?>` | ClassLoader.`loadClass(String name)` Loads the class with the specified binary name.
    `protected Class<?>` | ClassLoader.`loadClass(String name, boolean resolve)` Loads the class with the specified binary name.
    `boolean` | String.`matches(String regex)` Tells whether or not this string matches the given regular expression.
    `static boolean` | Boolean.`parseBoolean(String s)` Parses the string argument as a boolean.
    `static byte` | Byte.`parseByte(String s)` Parses the string argument as a signed decimal `byte`.
    `static byte` | Byte.`parseByte(String s, int radix)` Parses the string argument as a signed `byte` in the radix specified by the second argument.
    `static double` | Double.`parseDouble(String s)` Returns a new `double` initialized to the value represented by the specified `String`, as performed by the `valueOf` method of class `Double`.
    `static float` | Float.`parseFloat(String s)` Returns a new `float` initialized to the value represented by the specified `String`, as performed by the `valueOf` method of class `Float`.
    `static int` | Integer.`parseInt(String s)` Parses the string argument as a signed decimal integer.
    `static int` | Integer.`parseInt(String s, int radix)` Parses the string argument as a signed integer in the radix specified by the second argument.
    `static long` | Long.`parseLong(String s)` Parses the string argument as a signed decimal `long`.
    `static long` | Long.`parseLong(String s, int radix)` Parses the string argument as a signed `long` in the radix specified by the second argument.
    `static short` | Short.`parseShort(String s)` Parses the string argument as a signed decimal `short`.
    `static short` | Short.`parseShort(String s, int radix)` Parses the string argument as a signed `short` in the radix specified by the second argument.
    `boolean` | String.`regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len)` Tests if two string regions are equal.
    `boolean` | String.`regionMatches(int toffset, String other, int ooffset, int len)` Tests if two string regions are equal.
    `StringBuilder` | StringBuilder.`replace(int start, int end, String str)`
    `StringBuffer` | StringBuffer.`replace(int start, int end, String str)`
    `String` | String.`replaceAll(String regex, String replacement)` Replaces each substring of this string that matches the given regular expression with the given replacement.
    `String` | String.`replaceFirst(String regex, String replacement)` Replaces the first substring of this string that matches the given regular expression with the given replacement.
    `void` | Thread.`setName(String name)` Changes the name of this thread to be equal to the argument `name`.
    `String[]` | String.`split(String regex)` Splits this string around matches of the given regular expression.
    `String[]` | String.`split(String regex, int limit)` Splits this string around matches of the given regular expression.
    `boolean` | String.`startsWith(String prefix)` Tests if this string starts with the specified prefix.
    `boolean` | String.`startsWith(String prefix, int toffset)` Tests if the substring of this string beginning at the specified index starts with the specified prefix.
    `static <T extends Enum<T>> T` | Enum.`valueOf(Class<T> enumType, String name)` Returns the enum constant of the specified enum type with the specified name.
    `static Thread.State` | Thread.State.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static Short` | Short.`valueOf(String s)` Returns a `Short` object holding the value given by the specified `String`.
    `static Long` | Long.`valueOf(String s)` Returns a `Long` object holding the value of the specified `String`.
    `static Integer` | Integer.`valueOf(String s)` Returns an `Integer` object holding the value of the specified `String`.
    `static Float` | Float.`valueOf(String s)` Returns a `Float` object holding the `float` value represented by the argument string `s`.
    `static Double` | Double.`valueOf(String s)` Returns a `Double` object holding the `double` value represented by the argument string `s`.
    `static Byte` | Byte.`valueOf(String s)` Returns a `Byte` object holding the value given by the specified `String`.
    `static Boolean` | Boolean.`valueOf(String s)` Returns a `Boolean` with a value represented by the specified string.
    `static Short` | Short.`valueOf(String s, int radix)` Returns a `Short` object holding the value extracted from the specified `String` when parsed with the radix given by the second argument.
    `static Long` | Long.`valueOf(String s, int radix)` Returns a `Long` object holding the value extracted from the specified `String` when parsed with the radix given by the second argument.
    `static Integer` | Integer.`valueOf(String s, int radix)` Returns an `Integer` object holding the value extracted from the specified `String` when parsed with the radix given by the second argument.
    `static Byte` | Byte.`valueOf(String s, int radix)` Returns a `Byte` object holding the value extracted from the specified `String` when parsed with the radix given by the second argument.

    Constructors in java.lang with parameters of type String
    Constructor and Description
    `ArithmeticException(String s)` Constructs an `ArithmeticException` with the specified detail message.
    `ArrayIndexOutOfBoundsException(String s)` Constructs an `ArrayIndexOutOfBoundsException` class with the specified detail message.
    `ArrayStoreException(String s)` Constructs an `ArrayStoreException` with the specified detail message.
    `AssertionError(String message, Throwable cause)` Constructs a new `AssertionError` with the specified detail message and cause.
    `Boolean(String s)` Allocates a `Boolean` object representing the value `true` if the string argument is not `null` and is equal, ignoring case, to the string `"true"`.
    `Byte(String s)` Constructs a newly allocated `Byte` object that represents the `byte` value indicated by the `String` parameter.
    `ClassCastException(String s)` Constructs a `ClassCastException` with the specified detail message.
    `ClassFormatError(String s)` Constructs a `ClassFormatError` with the specified detail message.
    `ClassNotFoundException(String s)` Constructs a `ClassNotFoundException` with the specified detail message.
    `ClassNotFoundException(String s, Throwable ex)` Constructs a `ClassNotFoundException` with the specified detail message and optional exception that was raised while loading the class.
    `CloneNotSupportedException(String s)` Constructs a `CloneNotSupportedException` with the specified detail message.
    `Double(String s)` Constructs a newly allocated `Double` object that represents the floating-point value of type `double` represented by the string.
    `Enum(String name, int ordinal)` Sole constructor.
    `Error(String message)` Constructs a new error with the specified detail message.
    `Error(String message, Throwable cause)` Constructs a new error with the specified detail message and cause.
    `Error(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)` Constructs a new error with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
    `Exception(String message)` Constructs a new exception with the specified detail message.
    `Exception(String message, Throwable cause)` Constructs a new exception with the specified detail message and cause.
    `Exception(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)` Constructs a new exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
    `Float(String s)` Constructs a newly allocated `Float` object that represents the floating-point value of type `float` represented by the string.
    `IllegalAccessError(String s)` Constructs an `IllegalAccessError` with the specified detail message.
    `IllegalAccessException(String s)` Constructs an `IllegalAccessException` with a detail message.
    `IllegalArgumentException(String s)` Constructs an `IllegalArgumentException` with the specified detail message.
    `IllegalArgumentException(String message, Throwable cause)` Constructs a new exception with the specified detail message and cause.
    `IllegalStateException(String s)` Constructs an IllegalStateException with the specified detail message.
    `IllegalStateException(String message, Throwable cause)` Constructs a new exception with the specified detail message and cause.
    `IncompatibleClassChangeError(String s)` Constructs an `IncompatibleClassChangeError` with the specified detail message.
    `IndexOutOfBoundsException(String s)` Constructs an `IndexOutOfBoundsException` with the specified detail message.
    `InstantiationException(String s)` Constructs an `InstantiationException` with the specified detail message.
    `Integer(String s)` Constructs a newly allocated `Integer` object that represents the `int` value indicated by the `String` parameter.
    `InterruptedException(String s)` Constructs an `InterruptedException` with the specified detail message.
    `LinkageError(String s)` Constructs a `LinkageError` with the specified detail message.
    `LinkageError(String s, Throwable cause)` Constructs a `LinkageError` with the specified detail message and cause.
    `Long(String s)` Constructs a newly allocated `Long` object that represents the `long` value indicated by the `String` parameter.
    `NegativeArraySizeException(String s)` Constructs a `NegativeArraySizeException` with the specified detail message.
    `NoSuchMethodError(String s)` Constructs a `NoSuchMethodError` with the specified detail message.
    `NoSuchMethodException(String s)` Constructs a `NoSuchMethodException` with a detail message.
    `NullPointerException(String s)` Constructs a `NullPointerException` with the specified detail message.
    `NumberFormatException(String s)` Constructs a `NumberFormatException` with the specified detail message.
    `OutOfMemoryError(String s)` Constructs an `OutOfMemoryError` with the specified detail message.
    `ReflectiveOperationException(String message)` Constructs a new exception with the specified detail message.
    `ReflectiveOperationException(String message, Throwable cause)` Constructs a new exception with the specified detail message and cause.
    `RuntimeException(String message)` Constructs a new runtime exception with the specified detail message.
    `RuntimeException(String message, Throwable cause)` Constructs a new runtime exception with the specified detail message and cause.
    `RuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)` Constructs a new runtime exception with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
    `SecurityException(String s)` Constructs a `SecurityException` with the specified detail message.
    `SecurityException(String message, Throwable cause)` Creates a `SecurityException` with the specified detail message and cause.
    `Short(String s)` Constructs a newly allocated `Short` object that represents the `short` value indicated by the `String` parameter.
    `StackTraceElement(String declaringClass, String methodName, String fileName, int lineNumber)` Creates a stack trace element representing the specified execution point.
    `String(byte[] bytes, int offset, int length, String charsetName)` Constructs a new `String` by decoding the specified subarray of bytes using the specified charset.
    `String(byte[] bytes, String charsetName)` Constructs a new `String` by decoding the specified array of bytes using the specified charset.
    `String(String original)` Initializes a newly created `String` object so that it represents the same sequence of characters as the argument; in other words, the newly created string is a copy of the argument string.
    `StringBuffer(String str)` Constructs a string buffer initialized to the contents of the specified string.
    `StringBuilder(String str)` Constructs a string builder initialized to the contents of the specified string.
    `StringIndexOutOfBoundsException(String s)` Constructs a `StringIndexOutOfBoundsException` with the specified detail message.
    `Subset(String name)` Constructs a new `Subset` instance.
    `Thread(Runnable target, String name)` Allocates a new `Thread` object.
    `Thread(String name)` Allocates a new `Thread` object.
    `Throwable(String message)` Constructs a new throwable with the specified detail message.
    `Throwable(String message, Throwable cause)` Constructs a new throwable with the specified detail message and cause.
    `Throwable(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)` Constructs a new throwable with the specified detail message, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.
    `UnsupportedOperationException(String message)` Constructs an UnsupportedOperationException with the specified detail message.
    `UnsupportedOperationException(String message, Throwable cause)` Constructs a new exception with the specified detail message and cause.
    `VirtualMachineError(String message)` Constructs a `VirtualMachineError` with the specified detail message.
    `VirtualMachineError(String message, Throwable cause)` Constructs a `VirtualMachineError` with the specified detail message and cause.

  - ### Uses of String in java.lang.annotation

    Methods in java.lang.annotation that return String
    Modifier and Type | Method and Description
    --- | ---
    `String` | Annotation.`toString()` Returns a string representation of this annotation.

    Methods in java.lang.annotation with parameters of type String
    Modifier and Type | Method and Description
    --- | ---
    `static RetentionPolicy` | RetentionPolicy.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static ElementType` | ElementType.`valueOf(String name)` Returns the enum constant of this type with the specified name.

  - ### Uses of String in java.lang.invoke

    Methods in java.lang.invoke that return String
    Modifier and Type | Method and Description
    --- | ---
    `String` | SerializedLambda.`getCapturingClass()` Get the name of the class that captured this lambda.
    `String` | SerializedLambda.`getFunctionalInterfaceClass()` Get the name of the invoked type to which this lambda has been converted
    `String` | SerializedLambda.`getFunctionalInterfaceMethodName()` Get the name of the primary method for the functional interface to which this lambda has been converted.
    `String` | SerializedLambda.`getFunctionalInterfaceMethodSignature()` Get the signature of the primary method for the functional interface to which this lambda has been converted.
    `String` | SerializedLambda.`getImplClass()` Get the name of the class containing the implementation method.
    `String` | SerializedLambda.`getImplMethodName()` Get the name of the implementation method.
    `String` | SerializedLambda.`getImplMethodSignature()` Get the signature of the implementation method.
    `String` | SerializedLambda.`getInstantiatedMethodType()` Get the signature of the primary functional interface method after type variables are substituted with their instantiation from the capture site.
    `String` | MethodType.`toMethodDescriptorString()` Produces a bytecode descriptor representation of the method type.
    `String` | MethodType.`toString()` Returns a string representation of the method type, of the form `"(PT0,PT1...)RT"`.
    `String` | MethodHandles.Lookup.`toString()` Displays the name of the class from which lookups are to be made.
    `String` | MethodHandle.`toString()` Returns a string representation of the method handle, starting with the string `"MethodHandle"` and ending with the string representation of the method handle's type.

    Methods in java.lang.invoke with parameters of type String
    Modifier and Type | Method and Description
    --- | ---
    `static CallSite` | LambdaMetafactory.`altMetafactory(MethodHandles.Lookup caller, String invokedName, MethodType invokedType, Object... args)` Facilitates the creation of simple "function objects" that implement one or more interfaces by delegation to a provided `MethodHandle`, after appropriate type adaptation and partial evaluation of arguments.
    `MethodHandle` | MethodHandles.Lookup.`bind(Object receiver, String name, MethodType type)` Produces an early-bound method handle for a non-static method.
    `MethodHandle` | MethodHandles.Lookup.`findGetter(Class<?> refc, String name, Class<?> type)` Produces a method handle giving read access to a non-static field.
    `MethodHandle` | MethodHandles.Lookup.`findSetter(Class<?> refc, String name, Class<?> type)` Produces a method handle giving write access to a non-static field.
    `MethodHandle` | MethodHandles.Lookup.`findSpecial(Class<?> refc, String name, MethodType type, Class<?> specialCaller)` Produces an early-bound method handle for a virtual method.
    `MethodHandle` | MethodHandles.Lookup.`findStatic(Class<?> refc, String name, MethodType type)` Produces a method handle for a static method.
    `MethodHandle` | MethodHandles.Lookup.`findStaticGetter(Class<?> refc, String name, Class<?> type)` Produces a method handle giving read access to a static field.
    `MethodHandle` | MethodHandles.Lookup.`findStaticSetter(Class<?> refc, String name, Class<?> type)` Produces a method handle giving write access to a static field.
    `MethodHandle` | MethodHandles.Lookup.`findVirtual(Class<?> refc, String name, MethodType type)` Produces a method handle for a virtual method.
    `static MethodType` | MethodType.`fromMethodDescriptorString(String descriptor, ClassLoader loader)` Finds or creates an instance of a method type, given the spelling of its bytecode descriptor.
    `static CallSite` | LambdaMetafactory.`metafactory(MethodHandles.Lookup caller, String invokedName, MethodType invokedType, MethodType samMethodType, MethodHandle implMethod, MethodType instantiatedMethodType)` Facilitates the creation of simple "function objects" that implement one or more interfaces by delegation to a provided `MethodHandle`, after appropriate type adaptation and partial evaluation of arguments.

    Constructors in java.lang.invoke with parameters of type String
    Constructor and Description
    `SerializedLambda(Class<?> capturingClass, String functionalInterfaceClass, String functionalInterfaceMethodName, String functionalInterfaceMethodSignature, int implMethodKind, String implClass, String implMethodName, String implMethodSignature, String instantiatedMethodType, Object[] capturedArgs)` Create a `SerializedLambda` from the low-level information present at the lambda factory site.

  - ### Uses of String in java.lang.reflect

    Methods in java.lang.reflect that return String
    Modifier and Type | Method and Description
    --- | ---
    `String` | TypeVariable.`getName()` Returns the name of this type variable, as it occurs in the source code.
    `String` | Method.`getName()` Returns the name of the method represented by this `Method` object, as a `String`.
    `String` | Member.`getName()` Returns the simple name of the underlying member or constructor represented by this Member.
    `String` | Field.`getName()` Returns the name of the field represented by this `Field` object.
    `String` | Constructor.`getName()` Returns the name of this constructor, as a string.
    `String` | Method.`toGenericString()` Returns a string describing this `Method`, including type parameters.
    `String` | Field.`toGenericString()` Returns a string describing this `Field`, including its generic type.
    `String` | Constructor.`toGenericString()` Returns a string describing this `Constructor`, including type parameters.
    `String` | Method.`toString()` Returns a string describing this `Method`.
    `String` | Field.`toString()` Returns a string describing this `Field`.
    `String` | Constructor.`toString()` Returns a string describing this `Constructor`.
    `static String` | Modifier.`toString(int mod)` Return a string describing the access modifier flags in the specified modifier.

    Constructors in java.lang.reflect with parameters of type String
    Constructor and Description
    `InvocationTargetException(Throwable target, String s)` Constructs a InvocationTargetException with a target exception and a detail message.
    `UndeclaredThrowableException(Throwable undeclaredThrowable, String s)` Constructs an `UndeclaredThrowableException` with the specified `Throwable` and a detail message.

  - ### Uses of String in java.net

    Methods in java.net that return String
    Modifier and Type | Method and Description
    --- | ---
    `String` | URL.`getAuthority()` Gets the authority part of this `URL`.
    `String` | URL.`getFile()` Gets the file name of this `URL`.
    `String` | URL.`getHost()` Gets the host name of this `URL`, if applicable.
    `String` | URL.`getPath()` Gets the path part of this `URL`.
    `String` | URL.`getProtocol()` Gets the protocol name of this `URL`.
    `String` | URL.`getQuery()` Gets the query part of this `URL`.
    `String` | URL.`getRef()` Gets the anchor (also known as the "reference") of this `URL`.
    `String` | URL.`getUserInfo()` Gets the userInfo part of this `URL`.
    `String` | URL.`toExternalForm()` Constructs a string representation of this `URL`.
    `protected String` | URLStreamHandler.`toExternalForm(URL u)` Converts a `URL` of a specific protocol to a `String`.
    `String` | URL.`toString()` Constructs a string representation of this `URL`.

    Methods in java.net with parameters of type String
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | URLStreamHandler.`parseURL(URL u, String spec, int start, int limit)` Parses the string representation of a `URL` into a `URL` object.
    `protected void` | URL.`set(String protocol, String host, int port, String file, String ref)` Sets the fields of the URL.
    `protected void` | URL.`set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)` Sets the specified 8 fields of the URL.
    `protected void` | URLStreamHandler.`setURL(URL u, String protocol, String host, int port, String file, String ref)` Deprecated. Use setURL(URL, String, String, int, String, String, String, String);
    `protected void` | URLStreamHandler.`setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)` Sets the fields of the `URL` argument to the indicated values.

    Constructors in java.net with parameters of type String
    Constructor and Description
    `MalformedURLException(String msg)` Constructs a `MalformedURLException` with the specified detail message.
    `URL(String spec)` Creates a `URL` object from the `String` representation.
    `URL(String protocol, String host, int port, String file)` Creates a `URL` object from the specified `protocol`, `host`, `port` number, and `file`.
    `URL(String protocol, String host, int port, String file, URLStreamHandler handler)` Creates a `URL` object from the specified `protocol`, `host`, `port` number, `file`, and `handler`.
    `URL(String protocol, String host, String file)` Creates a URL from the specified `protocol` name, `host` name, and `file` name.
    `URL(URL context, String spec)` Creates a URL by parsing the given spec within a specified context.
    `URL(URL context, String spec, URLStreamHandler handler)` Creates a URL by parsing the given spec with the specified handler within a specified context.

  - ### Uses of String in java.util

    Methods in java.util that return String
    Modifier and Type | Method and Description
    --- | ---
    `String` | ServiceLoader.`toString()` Returns a string describing this service.
    `static String` | Objects.`toString(Object o)` Returns the result of calling `toString` for a non-`null` argument and `"null"` for a `null` argument.
    `static String` | Objects.`toString(Object o, String nullDefault)` Returns the result of calling `toString` on the first argument if the first argument is not `null` and returns the second argument otherwise.

    Methods in java.util with parameters of type String
    Modifier and Type | Method and Description
    --- | ---
    `static <T> T` | Objects.`requireNonNull(T obj, String message)` Checks that the specified object reference is not `null` and throws a customized `NullPointerException` if it is.
    `static String` | Objects.`toString(Object o, String nullDefault)` Returns the result of calling `toString` on the first argument if the first argument is not `null` and returns the second argument otherwise.

    Method parameters in java.util with type arguments of type String
    Modifier and Type | Method and Description
    --- | ---
    `static <T> T` | Objects.`requireNonNull(T obj, Supplier<String> messageSupplier)` Checks that the specified object reference is not `null` and throws a customized `NullPointerException` if it is.

    Constructors in java.util with parameters of type String
    Constructor and Description
    `NoSuchElementException(String s)` Constructs a `NoSuchElementException`, saving a reference to the error message string `s` for later retrieval by the `getMessage` method.
    `ServiceConfigurationError(String msg)` Constructs a new instance with the specified message.
    `ServiceConfigurationError(String msg, Throwable cause)` Constructs a new instance with the specified message and cause.
    `Timer(String name)` Creates a new timer whose associated thread has the specified name.
    `Timer(String name, boolean isDaemon)` Creates a new timer whose associated thread has the specified name, and may be specified to run as a daemon.

Copyright © 2025 API Design. All Rights Reserved.