June 2017
Intermediate to advanced
304 pages
7h 12m
English
Every constructor looks for the base URL, and if its value is null, then it considers the relative URL as the absolute URL. Also, you can use a relative URL for creating URL objects for named anchors. There are other URL constructors available in which you can pass all the four preceding components given separately. If a URL contains any special character, then such URLs can get encoded first so that the address gets validated as the legal address; then, they are passed to the URL constructor (for example, the space character is encoded as %20).
While constructing a URL object, if the URL string passed to the constructor is null or is an unknown protocol, then it throws MalformedURLException. Therefore, one ...
Read now
Unlock full access