wood burning stoves
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Doubt in path separator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Doubt in path separator" Watch "Doubt in path separator" New topic

Doubt in path separator

Sekhar Choudary
Ranch Hand

Joined: May 03, 2008
Posts: 57
Hi ,

Can any one explain differences between


Thanks .
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904

All four are seems to be the same thing in Java , either unix OS "/" or windows OS "\" , called Path Separator, and they are represented by string !

Where you find those words !

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Nikos Pougounias
Ranch Hand

Joined: Jan 16, 2008
Posts: 110
Actually, pathSeparator is used to separate the entries in path. In Windows it's ; and in Unix systems it's :.

For example, see how these entries are separated

pathSeparator is a String and pathSeparatorChar is a char. It's convenient to have both available.

Nikos' Java blog
I agree. Here's the link: http://aspose.com/file-tools
subject: Doubt in path separator
jQuery in Action, 3rd edition