Saiyine
Punto Com

Memoria libre en Java

2007-11-10 12:15:29

Conocer 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());
  }
}

Rollos antiguos

2007-10-20 06:45:13 - Calling hierarchy in Java.

2007-10-20 06:37:48 - Jerarquia de llamada en Java.

2007-10-20 05:47:16 - The time of your life.

2007-10-02 07:24:23 - What if people bought cars like they buy computers?.

2007-09-29 07:08:11 - Alien vs Predator: Requiem.

Saiyine

Selfie of meHi! Welcome to Saiyine Punto Com where I talk about anything that goes through my mind!

Puedo prometer y prometo que a la mayor brevedad aquí irá un menú o algo asín.