import java.io.IOException;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Subhani.s
*/
public class freespace
{
public static void main(String args[]) throws IOException
{
//1. Runtime.getRuntime().exec("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
System.out.println( "Free Memory: "+ Runtime.getRuntime().freeMemory());
System.out.println( "Total Memory: "+ Runtime.getRuntime().totalMemory());
System.out.print( "Used Memory: ");
System.out.println (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory());
}
}
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Subhani.s
*/
public class freespace
{
public static void main(String args[]) throws IOException
{
//1. Runtime.getRuntime().exec("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
System.out.println( "Free Memory: "+ Runtime.getRuntime().freeMemory());
System.out.println( "Total Memory: "+ Runtime.getRuntime().totalMemory());
System.out.print( "Used Memory: ");
System.out.println (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory());
}
}
No comments:
Post a Comment