Java - Interview Questions and Answers on URL / URI

Q1.  What is URL?

Ans. URL is Uniform Resource Locator which is representation of HTTP address.

Q2. What is URL Rewriting ?

Ans. Every URL that the user clicks on is dynamically modified or rewritten to include extra information. The extra information can be in the form of extra path information, added parameters or some custom, server-specific URL change.

Q3. What is the Java URI class used for ?

Ans. This class Represents a Uniform Resource Identifier (URI) reference.

Q4. Which interfaces are implemented by Java URI class?

Ans.[Comparable]

Q5. Which is the Parent Class of  URI class?

Ans.Object