Java URL equals() Method24 Mar 2025 | 1 min read The equals() method of URL class compares this URL for equality with another URL object. It returns false if the given object is not a URL. If IP address of two different is same, then it considered equivalent host. SyntaxOverridesequals in class Object Parameterobj - the URL to compare against. Returnstrue if the objects are the same; false otherwise. Example 1Output: Matching url : true Next TopicJava URL Class |
We request you to subscribe our newsletter for upcoming updates.

We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India