Get Memory Size


public class Memory {

    public static void main(String[] args) {

       System.out.println("Total Memory"+Runtime.getRuntime().totalMemory());  
       System.out.println("Free Memory"+Runtime.getRuntime().freeMemory());
}
}

Post a Comment

Copyright © Rough Record. Designed by OddThemes