File Separator Using System Class

Chapter: Run Time Last Updated: 17-06-2016 11:40:25 UTC

Program:

            /* ............... START ............... */
                
public class JavaFileSeperatorUsingSystemClass {

	public static void main(String[] args) {

		String strFileSeparator = System.getProperty("file.separator");

		System.out.println("File separator is : " + strFileSeparator);
	}
}

                /* ............... END ............... */
        

Output

object is garbage collected 

Tags

File Separator Using System Class, Java, Runtime

Similar Programs Chapter Last Updated
System Time Milliseconds In Java Example Run Time 17-06-2016
Java Virtual Machine (JVM) Termination Example Run Time 17-06-2016
JVM to Run Garbage Collector Example Run Time 17-06-2016
Total Memory Java Virtual Machine (JVM) Example Run Time 17-06-2016
Java RunTime Example Run Time 17-06-2016
Available Processors Using Java Runtime Run Time 06-04-2016
Maximum Memory Available to Java Virtual Machine(JVM) Run Time 09-07-2016
Free Memory In Java Example Run Time 09-07-2016

1