Module java.base
Package java.net

# Class URL

=
public final class URL
extends java.lang.Object
implements java.io.Serializable

## Constructors

- =
  @Deprecated(since="20")
  public URL(java.lang.String arg0) throws java.net.MalformedURLException
- =
  @Deprecated(since="20")
  public URL(java.lang.String arg0, java.lang.String arg1, int arg2, java.lang.String arg3) throws java.net.MalformedURLException
- =
  @Deprecated(since="20")
  public URL(java.lang.String arg0, java.lang.String arg1, int arg2, java.lang.String arg3, java.net.URLStreamHandler arg4) throws java.net.MalformedURLException
- =
  @Deprecated(since="20")
  public URL(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws java.net.MalformedURLException
- =
  @Deprecated(since="20")
  public URL(java.net.URL arg0, java.lang.String arg1) throws java.net.MalformedURLException
- =
  @Deprecated(since="20")
  public URL(java.net.URL arg0, java.lang.String arg1, java.net.URLStreamHandler arg2) throws java.net.MalformedURLException

## Methods

- =
  public boolean equals(java.lang.Object arg0)
- =
  public java.lang.String getAuthority()
- =
  public final java.lang.Object getContent() throws java.io.IOException
- =
  public final java.lang.Object getContent(java.lang.Class<?>[] arg0) throws java.io.IOException
- =
  public int getDefaultPort()
- =
  public java.lang.String getFile()
- =
  public java.lang.String getHost()
- =
  public java.lang.String getPath()
- =
  public int getPort()
- =
  public java.lang.String getProtocol()
- =
  public java.lang.String getQuery()
- =
  public java.lang.String getRef()
- =
  public java.lang.String getUserInfo()
- =
  public int hashCode()
- =
  public static java.net.URL of(java.net.URI arg0, java.net.URLStreamHandler arg1) throws java.net.MalformedURLException
- =
  public java.net.URLConnection openConnection() throws java.io.IOException
- =
  public java.net.URLConnection openConnection(java.net.Proxy arg0) throws java.io.IOException
- =
  public final java.io.InputStream openStream() throws java.io.IOException
- =
  public boolean sameFile(java.net.URL arg0)
- =
  public static void setURLStreamHandlerFactory(java.net.URLStreamHandlerFactory arg0)
- =
  public java.lang.String toExternalForm()
- =
  public java.lang.String toString()
- =
  public java.net.URI toURI() throws java.net.URISyntaxException

## Serialized Form

=

### serialVersionUID

=-7627629688361524110

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private java.lang.Object readResolve() throws java.io.ObjectStreamException
- =
  private void writeObject(java.io.ObjectOutputStream arg0) throws java.io.IOException

## Summary

No differences.