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());
}
}
Home java sample program Get Memory Size
By Faizal Ps At 11:12 PM 0
Post a Comment