URL.URL() | Java

 

Descripción

Sintaxis

public URL(String spec) throws MalformedURLException
public URL(String protocol, String host, int port, String file) throws MalformedURLException
public URL(String protocol, String host, int port, String file, URLStreamHandler handler) throws MalformedURLException
public URL(String protocol, String host, String file) throws MalformedURLException
public URL(URL context, String spec) throws MalformedURLException
public URL(URL context, String spec, URLStreamHandler handler) throws MalformedURLException

Parámetros

  • String file,
  • String spec,
  • String host,
  • URL context,
  • URLStreamHandler handler,
  • int port,
  • String protocol,

Excepciones

SecurityException, MalformedURLException

Clase Padre

URL

Ejemplo


Líneas de Código

    Manual Java

    Aprende más sobre Java consultando online o descargando nuestro manual.

    Test Java

    ¿Te atreves a probar tus habilidades y conocimiento en Java con nuestro test?

    Vídeos Java

    Disfruta también de nuestros artículos sobre Java en formato vídeo. Aprovecha y suscribete a nuestro canal.