views:

162

answers:

3

Does Runtime.getRuntime().freeMemory() return the free heap memory space or heap + non-heap memory space?

A: 

its free heap memory space. and it will be in bytes

GK
A: 

As far as I'm aware its the free heap memory, it certainly is on mobile Java.

metismo
+2  A: 

javadoc says:

@return an approximation to the total amount of memory currently available for future allocated objects, measured in bytes.

This means heap space.

tangens