Uses of Class
java.lang.String

Packages that useString
Package
Description
com.sun.java.accessibility.util
Provides a collection of interfaces and classes that compose the Java AccessibilityUtilities.
com.sun.jdi
This is the core package of the Java DebugInterface (JDI), it defines mirrors for values, types, and the targetVirtualMachine itself - as well bootstrapping facilities.
com.sun.jdi.connect
This package defines connections between the virtual machineusing the JDI and the target virtual machine.
com.sun.jdi.connect.spi
This package comprises the interfaces and classes used todevelop newTransportServiceimplementations.
com.sun.jdi.event
This package defines JDI events and event processing.
com.sun.jdi.request
This package is used to request that a JDIevent be sent under specified conditions.
com.sun.management
This package contains JDK extensions to the standard implementation ofthejava.lang.management API and also defines the managementinterface for some other components of the platform.
com.sun.net.httpserver
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers.
com.sun.nio.sctp
A Java API for Stream Control Transport Protocol.
com.sun.security.auth
Provides implementations ofPrincipal.
com.sun.security.auth.login
Provides an implementation ofConfiguration.
com.sun.security.auth.module
Provides implementations ofLoginModule.
com.sun.security.jgss
This package defines classes and interfaces for the JDK extensionsto the GSS-API.
com.sun.source.doctree
Provides interfaces to represent documentation comments as abstract syntaxtrees (AST).
com.sun.source.tree
Provides interfaces to represent source code as abstract syntaxtrees (AST).
com.sun.source.util
Provides utilities for operations on abstract syntax trees (AST).
com.sun.tools.attach
Provides the API to attach to a Java virtual machine.
com.sun.tools.attach.spi
Only developers who are defining new attach providers should need to makedirect use of this package.
com.sun.tools.javac
This package provides a legacy entry point for thejavac tool.
com.sun.tools.jconsole
This package contains the JConsole API.
java.applet
Provides the classes necessary to create an applet and the classes an appletuses to communicate with its applet context.
java.awt
Contains all of the classes for creating user interfaces and for paintinggraphics and images.
java.awt.color
Provides classes for color spaces.
java.awt.datatransfer
Provides interfaces and classes for transferring data between and withinapplications.
java.awt.desktop
Provides interfaces and classes for interaction with various desktopcapabilities.
java.awt.dnd
Drag and Drop is a direct manipulation gesture found in many Graphical UserInterface systems that provides a mechanism to transfer information betweentwo entities logically associated with presentation elements in the GUI.
java.awt.event
Provides interfaces and classes for dealing with different types of eventsfired by AWT components.
java.awt.font
Provides classes and interface relating to fonts.
java.awt.geom
Provides the Java 2D classes for defining and performing operations onobjects related to two-dimensional geometry.
java.awt.im.spi
Provides interfaces that enable the development of input methods that can beused with any Java runtime environment.
java.awt.image
Provides classes for creating and modifying images.
java.awt.image.renderable
Provides classes and interfaces for producing rendering-independent images.
java.awt.print
Provides classes and interfaces for a general printing API.
java.beans
Contains classes related to developingbeans -- components based onthe JavaBeans architecture.
java.beans.beancontext
Provides classes and interfaces relating to bean context.
java.io
Provides for system input and output through data streams,serialization and the file system.
java.lang
Provides classes that are fundamental to the design of the Javaprogramming language.
java.lang.annotation
Provides library support for the Java programming languageannotation facility.
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describingclass file attributes for thejava.lang.classfile library.
java.lang.classfile.constantpool
Provides interfaces describing constant pool entries for thejava.lang.classfile library.
java.lang.classfile.instruction
Provides interfaces describing code instructions for thejava.lang.classfile library.
java.lang.constant
Classes and interfaces to representnominal descriptors for run-timeentities such as classes or method handles, and classfile entities such asconstant pool entries orinvokedynamic call sites.
java.lang.foreign
Provides low-level access to memory and functions outside the Java runtime.
java.lang.instrument
Provides services that allow Java programming language agents to instrumentprograms running on the Java Virtual Machine (JVM).
java.lang.invoke
Thejava.lang.invoke package provides low-level primitives for interactingwith the Java Virtual Machine.
java.lang.management
Provides the management interfaces for monitoring and management of theJava virtual machine and other components in the Java runtime.
java.lang.module
Classes to support module descriptors and creating configurations of modulesby means of resolution and service binding.
java.lang.reflect
Provides classes and interfaces for obtaining reflective information aboutclasses and objects.
java.lang.runtime
Thejava.lang.runtime package provides low-level runtime supportfor the Java language.
java.math
Provides classes for performing arbitrary-precision integerarithmetic (BigInteger) and arbitrary-precision decimalarithmetic (BigDecimal).
java.net
Provides the classes for implementing networking applications.
java.net.http
HTTP Client and WebSocket APIs
java.net.spi
Service-provider classes for thejava.net package.
java.nio
Defines buffers, which are containers for data, and provides anoverview of the other NIO packages.
java.nio.channels
Defines channels, which represent connections to entities that are capable ofperforming I/O operations, such as files and sockets; defines selectors, formultiplexed, non-blocking I/O operations.
java.nio.charset
Defines charsets, decoders, and encoders, for translating betweenbytes and Unicode characters.
java.nio.charset.spi
Service-provider classes for thejava.nio.charset package.
java.nio.file
Defines interfaces and classes for the Java virtual machine to access files,file attributes, and file systems.
java.nio.file.attribute
Interfaces and classes providing access to file and file system attributes.
java.nio.file.spi
Service-provider classes for thejava.nio.file package.
java.rmi
Provides the RMI package.
java.rmi.dgc
Provides classes and interface for RMI distributedgarbage-collection (DGC).
java.rmi.registry
Provides a class and two interfaces for the RMI registry.
java.rmi.server
Provides classes and interfaces for supporting the server side of RMI.
java.security
Provides the classes and interfaces for the security framework.
java.security.cert
Provides classes and interfaces for parsing and managingcertificates, certificate revocation lists (CRLs), andcertification paths.
java.security.spec
Provides classes and interfaces for key specifications and algorithmparameter specifications.
java.sql
Provides the API for accessing and processing data stored in adata source (usually a relational database) using theJava programming language.
java.text
Provides classes and interfaces for handling text, dates, numbers,and messages in a manner independent of natural languages.
java.time
The main API for dates, times, instants, and durations.
java.time.chrono
Generic API for calendar systems other than the default ISO.
java.time.format
Provides classes to print and parse dates and times.
java.time.temporal
Access to date and time using fields and units, and date time adjusters.
java.time.zone
Support for time-zones and their rules.
java.util
Contains the collections framework, some internationalization support classes,a service loader, properties, random number generation, string parsingand scanning classes, base64 encoding and decoding, a bit array, andseveral miscellaneous utility classes.
java.util.concurrent
Utility classes commonly useful in concurrent programming.
java.util.concurrent.atomic
A small toolkit of classes that support lock-free thread-safeprogramming on single variables.
java.util.concurrent.locks
Interfaces and classes providing a framework for locking and waitingfor conditions that is distinct from built-in synchronization andmonitors.
java.util.jar
Provides classes for reading and writing the JAR (Java ARchive)file format, which is based on the standard ZIP file format with anoptional manifest file.
java.util.logging
Provides the classes and interfaces ofthe Java 2 platform's core logging facilities.
java.util.prefs
This package allows applications to store and retrieve user and systempreference and configuration data.
java.util.random
This package contains classes and interfaces that support a generic APIfor random number generation.
java.util.regex
Classes for matching character sequences against patterns specifiedby regular expressions.
java.util.spi
Service provider classes for the classes in the java.util package.
java.util.stream
Classes to support functional-style operations on streams of elements, suchas map-reduce transformations on collections.
java.util.zip
Provides classes for reading and writing the standard ZIP and GZIP fileformats.
javax.accessibility
Defines a contract between user-interface components and an assistivetechnology that provides access to those components.
javax.annotation.processing
Facilities for declaring annotation processors and forallowing annotation processors to communicate with an annotation processingtool environment.
javax.crypto
Provides the classes and interfaces for cryptographicoperations.
javax.crypto.spec
Provides classes and interfaces for key specifications andalgorithm parameter specifications.
javax.imageio
The main package of the Java Image I/O API.
javax.imageio.event
A package of the Java Image I/O API dealing with synchronous notification ofevents during the reading and writing of images.
javax.imageio.metadata
A package of the Java Image I/O API dealing with reading and writingmetadata.
javax.imageio.plugins.jpeg
Classes supporting the built-in JPEG plug-in.
javax.imageio.plugins.tiff
Public classes used by the built-in TIFF plug-ins.
javax.imageio.spi
A package of the Java Image I/O API containing the plug-in interfaces forreaders, writers, transcoders, and streams, and a runtime registry.
javax.imageio.stream
A package of the Java Image I/O API dealing with low-level I/O from files andstreams.
javax.lang.model
Types and hierarchies of packages comprising a Java language model, a reflective API that models the declarations and types of the Javaprogramming language.
javax.lang.model.element
Interfaces used to model elements of the Java programming language.
javax.lang.model.type
Interfaces used to model Java programming language types.
javax.lang.model.util
Utilities to assist in the processing ofprogram elements andtypes.
javax.management
Provides the core classes for the Java Management Extensions.
javax.management.loading
Provides the classes which implement advanced dynamicloading.
javax.management.modelmbean
Provides the definition of the ModelMBean classes.
javax.management.monitor
Provides the definition of the monitor classes.
javax.management.openmbean
Provides the open data types and Open MBean descriptor classes.
javax.management.relation
Provides the definition of the Relation Service.
javax.management.remote
Interfaces for remote access toJMX MBean servers.
javax.management.remote.rmi
The RMI connector is a connector for the JMX Remote API that uses RMI to transmit client requests to a remote MBean server.
javax.management.timer
Provides the definition of the Timer MBean.
javax.naming
Provides the classes and interfaces for accessing naming services.
javax.naming.directory
Extends thejavax.naming package to provide functionalityfor accessing directory services.
javax.naming.event
Provides support for event notification when accessing naming anddirectory services.
javax.naming.ldap
Provides support for LDAPv3 extended operations and controls.
javax.naming.ldap.spi
Provides the Service Provider Interface for DNS lookups whenperforming LDAP operations.
javax.naming.spi
Provides the means for dynamically plugging in support for accessingnaming and directory services through thejavax.namingand related packages.
javax.net
Provides classes for networking applications.
javax.net.ssl
Provides classes for the secure socket package.
javax.print
Provides the principal classes and interfaces for the Java PrintService API.
javax.print.attribute
Provides classes and interfaces that describe the types of Java PrintService attributes and how they can be collected into attribute sets.
javax.print.attribute.standard
Packagejavax.print.attribute.standard contains classes for specificprinting attributes.
javax.print.event
Packagejavax.print.event contains event classes and listenerinterfaces.
javax.rmi.ssl
Provides implementations ofRMIClientSocketFactoryandRMIServerSocketFactory overthe Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.
javax.script
The scripting API consists of interfaces and classes that defineJava Scripting Engines and providesa framework for their use in Java applications.
javax.security.auth
This package provides a framework for authentication andauthorization.
javax.security.auth.callback
This package provides the classes necessary for servicesto interact with applications in order to retrieveinformation (authentication data including usernamesor passwords, for example) or to display information(error and warning messages, for example).
javax.security.auth.kerberos
This package contains utility classes related to the Kerberos networkauthentication protocol.
javax.security.auth.login
This package provides a pluggable authentication framework.
javax.security.auth.spi
This package provides the interface to be used forimplementing pluggable authentication modules.
javax.security.auth.x500
This package contains the classes that should be used to storeX500 Principal and X500 Private Credentials in aSubject.
javax.security.cert
Provides classes for public key certificates.
javax.security.sasl
Contains class and interfaces for supporting SASL.
javax.smartcardio
Java™ Smart Card I/O API.
javax.sound.midi
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI(Musical Instrument Digital Interface) data.
javax.sound.sampled
Provides interfaces and classes for capture, processing, and playback ofsampled audio data.
javax.sql
Provides the API for server side data source access and processing fromthe Java programming language.
javax.sql.rowset
Standard interfaces and base classes for JDBCRowSet implementations.
javax.sql.rowset.serial
Provides utility classes to allow serializable mappings between SQL typesand data types in the Java programming language.
javax.sql.rowset.spi
The standard classes and interfaces that a third party vendor has to use in its implementation of a synchronization provider.
javax.swing
Provides a set of "lightweight" (all-Java language) componentsthat, to the maximum degree possible, work the same on all platforms.
javax.swing.border
Provides classes and interface for drawing specialized borders around a Swingcomponent.
javax.swing.colorchooser
Contains classes and interfaces used by theJColorChooser component.
javax.swing.event
Provides for events fired by Swing components.
javax.swing.filechooser
Contains classes and interfaces used by theJFileChooser component.
javax.swing.plaf
Provides one interface and many abstract classes that Swing uses to provideits pluggable look-and-feel capabilities.
javax.swing.plaf.basic
Provides user interface objects built according to the Basic look and feel.
javax.swing.plaf.metal
Provides user interface objects built according to the Java look and feel(once codenamedMetal), which is the default look and feel.
javax.swing.plaf.multi
Provides user interface objects that combine two or more look and feels.
javax.swing.plaf.nimbus
Provides user interface objects built according to the cross-platform Nimbuslook and feel.
javax.swing.plaf.synth
Synth is a skinnable look and feel in which all painting is delegated.
javax.swing.table
Provides classes and interfaces for dealing withjavax.swing.JTable.
javax.swing.text
Provides classes and interfaces that deal with editable and noneditable textcomponents.
javax.swing.text.html
Provides the classHTMLEditorKit and supporting classes for creatingHTML text editors.
javax.swing.text.html.parser
Provides the default HTML parser, along with support classes.
javax.swing.text.rtf
Provides a class (RTFEditorKit) for creating Rich-Text-Format texteditors.
javax.swing.tree
Provides classes and interfaces for dealing withjavax.swing.JTree.
javax.swing.undo
Allows developers to provide support for undo/redo in applications such astext editors.
javax.tools
Provides interfaces for tools which can be invoked from a program,for example, compilers.
javax.transaction.xa
Provides the API that defines the contract between the transaction managerand the resource manager, which allows the transaction manager to enlistand delist resource objects (supplied by the resource manager driver) inJTA transactions.
javax.xml
Defines constants for XML processing.
javax.xml.catalog
Provides the classes for implementingXML Catalogs OASIS Standard V1.1, 7 October 2005.
javax.xml.crypto
Common classes for XML cryptography.
javax.xml.crypto.dom
DOM-specific classes for thejavax.xml.crypto package.
javax.xml.crypto.dsig
Classes for generating and validating XML digitalsignatures.
javax.xml.crypto.dsig.keyinfo
Classes for parsing and processingKeyInfo elements and structures.
javax.xml.crypto.dsig.spec
Parameter classes for XML digital signatures.
javax.xml.datatype
Defines XML/Java Type Mappings.
javax.xml.namespace
Defines XML Namespace processing.
javax.xml.parsers
Provides the classes for processing XML documents with a SAX (Simple API for XML)parser or a DOM (Document Object Model) Document builder.
javax.xml.stream
Defines interfaces and classes for the Streaming API for XML (StAX).
javax.xml.stream.events
Defines event interfaces for the Streaming API for XML (StAX).
javax.xml.stream.util
Provides utility classes for the Streaming API for XML (StAX).
javax.xml.transform
Defines the generic APIs for processing transformation instructions,and performing a transformation from source to result.
javax.xml.transform.dom
Provides DOM specific transformation classes.
javax.xml.transform.sax
Provides SAX specific transformation classes.
javax.xml.transform.stax
Provides StAX specific transformation classes.
javax.xml.transform.stream
Provides stream and URI specific transformation classes.
javax.xml.validation
Provides an API for validation of XML documents.
javax.xml.xpath
Provides anobject-model neutral API for theevaluation of XPath expressions and access to the evaluationenvironment.
jdk.dynalink
Contains interfaces and classes that are used to link aninvokedynamic call site.
jdk.dynalink.beans
Contains the linker for ordinary Java objects.
jdk.dynalink.linker
Contains interfaces and classes needed by language runtimes to implementtheir own language-specific object models and type conversions.
jdk.dynalink.linker.support
Contains classes that make it more convenient for language runtimes toimplement their own language-specific object models and type conversionsby providing basic implementations of some classes as well as variousutilities.
jdk.incubator.vector

Incubating Feature. Will be removed in a future release.
jdk.javadoc.doclet
The Doclet API provides an environment which, in conjunction withthe Language Model API and Compiler Tree API, allows clientsto inspect the source-level structures of programs andlibraries, including API comments embedded in the source.
jdk.jfr
This package provides classes to create events and control Flight Recorder.
jdk.jfr.consumer
This package contains classes for consuming Flight Recorder data.
jdk.jshell
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL),which interactively evaluate "snippets" of Java programming language code.
jdk.jshell.execution
Provides implementation support for building JShell execution engines.
jdk.jshell.spi
Defines the Service Provider Interface for pluggable JShell execution engines.
jdk.jshell.tool
Provides a mechanism to launch an instance of a Java shell tool.
jdk.management.jfr
This package contains classes to control and monitor Flight Recorder over Java Management Extensions (JMX).
jdk.net
Platform specific socket options for thejava.net andjava.nio.channelssocket classes.
jdk.security.jarsigner
This package defines APIs for signing jar files.
netscape.javascript
Deprecated, for removal: This API element is subject to removalin a future version.
The jdk.jsobject module will be delivered with JavaFX.
org.ietf.jgss
This package presents a framework that allows application developers tomake use of security services like authentication, data integrity anddata confidentiality from a variety of underlying security mechanismslike Kerberos, using a unified API.
org.w3c.dom
Provides the interfaces for the Document Object Model (DOM).
org.w3c.dom.bootstrap
Provides a factory for obtaining instances ofDOMImplementation.
org.w3c.dom.css
Provides interfaces for DOM Level 2 Style Specification.
org.w3c.dom.events
Provides interfaces for DOM Level 2 Events.
org.w3c.dom.html
Provides interfaces for DOM Level 2 HTML Specification.
org.w3c.dom.ls
Provides interfaces for DOM Level 3 Load and Save.
org.w3c.dom.ranges
Provides interfaces for DOM Level 2 Range.
org.w3c.dom.stylesheets
Provides interfaces for DOM Level 2 Style Specification.
org.w3c.dom.xpath
Provides interfaces for DOM Level 3 XPath Specification.
org.xml.sax
Provides the interfaces for the Simple API for XML (SAX).
org.xml.sax.ext
Provides interfaces to SAX2 facilities thatconformant SAX drivers won't necessarily support.
org.xml.sax.helpers
Provides helper classes, includingsupport for bootstrapping SAX-based applications.