This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2902

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:
subject: Doubt in path separator
Similar Threads
How do i read .ldif file through java?
need basic help to compile first servelet
How to use user Defined separator in JPopupMenu instead of addSeparator() provided by Java Swing
getting exact url
Need component separator ->