How do I find out how much system memory is available in my system?

John Zukowski

The Runtime class has two methods to help you determine memory resources: freeMemory() and totalMemory(). The freeMemory() method reports the free bytes in Java's memory space. The totalMemory() reports the total bytes in Java's memory space.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.