This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes absolutepath and canonical path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "absolutepath and canonical path" Watch "absolutepath and canonical path" New topic
Author

absolutepath and canonical path

Milind Deodhar
Ranch Hand

Joined: Dec 06, 2000
Posts: 32
Can somebody explain me the correct output the methods
getAbsolutepath and getCanonicalPath will give with a example?
Suppose the file resides in dir c:\java
I am totally confused with this topic.
Milind.
[This message has been edited by Milind Deodhar (edited December 06, 2000).]
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
getAbsolutePath and getCanonicalPath are similar. RHE says that getCononicalPath resolves the . and ..
You can run an example with the code below, on my machine, both give the same output.

Bill
Vidya Selvaraj
Greenhorn

Joined: Nov 21, 2000
Posts: 29
Refer
http://www.javaranch.com/ubb/Forum24/HTML/005125.html
Vidya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: absolutepath and canonical path
 
Similar Threads
Passed SCJP with 92%
MindQ's #28 - Another bad (ambiguous) question
where can i find latest jdbc-odbc driver?
passed scwcd today with 100%...!!
Mock Exam Q