09 April 2012

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

0 comments:

Post a Comment

Related Posts with Thumbnails

Popular Posts

 
;