This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes What is canonicalpath? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "What is canonicalpath?" Watch "What is canonicalpath?" New topic

What is canonicalpath?

Mansi Shah

Joined: Nov 17, 2000
Posts: 2
Hello friends.
what is the difference between Canonicalpath and absolutePATH?
Can anybody help?
Michael Ernest
High Plains Drifter

Joined: Oct 25, 2000
Posts: 7292

The result of asking for a canonical path should of course be the absolute path. getCanonicalPath() is used to return the absolute path when only a relative path to the object is known.
Michael Ernest, co-author of:

    The Complete Java 2 Certification Study Guide

    [This message has been edited by Michael Ernest (edited November 17, 2000).]

Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
I agree. Here's the link:
subject: What is canonicalpath?
It's not a secret anymore!