el 2007-11-10 12:15:29 - Secciones: - Enlace permanente: 797Conocer la cantidad de memoria libre en un programa Java es realmente sencillo:
public class Memoria
{
public static void main(String[] args)
{
System.out.println("Total: "+Runtime.getRuntime().totalMemory());
System.out.println("Libre: "+Runtime.getRuntime().freeMemory());
}
}
Saiyine recommends the easiest way to earn money with your web: get paid just by having some links! Click this button to check it out.
