File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "What is canonicalpath?" Watch "What is canonicalpath?" New topic
Author

What is canonicalpath?

Mansi Shah
Greenhorn

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

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
 
jQuery in Action, 2nd edition
 
subject: What is canonicalpath?