Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
Java
10.5k+ articles
Java-Functions
4.1k+ articles
Strings
3.2k+ articles
Pattern Searching
610+ articles
java-regular-expression
90 articles
regular-expression
88 articles
Java-Classes
79 articles
python-regex
79 articles
Java-net-package
47 articles
CPP-regex
39 articles
Java-URL
18 posts
Popular Articles
Recent Articles
Difference between getPath() and getCononicalPath() in Java
Last Updated: 14 September 2022
Prior to discussing the differences lets quickly recap all three methodsgetPath() MethodgetAbsolutePath() MethodgetCanonicalPath() Method1.
...read more
Java
Difference Between
Java-URL
URL sameFile() method in Java with Examples
Last Updated: 10 May 2019
The sameFile() function of Java.net.URL class is used to compare two URLs excluding the fragment part. This method returns true if both the
...read more
Java
Java-Functions
Java-net-package
Java-URL
URL getDefaultPort() method in Java with Examples
Last Updated: 27 December 2018
The getDefaultPort() function of URL class returns the default port of a specified URL. If the URL scheme or the URLStreamHandler for the UR
...read more
Java
Java-Functions
Java-net-package
Java-URL
First
1
2
First
1
2
First
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !