If I retrieve memory from freeMemory() method .... which memory is returned ... the free ram or the memory available to jvm.
same is the question for totalMemory().
Returns the amount of free memory in the Java Virtual Machine
Returns the total amount of memory in the Java virtual machine
Click on the java sun link for more information:
Java Sun Link
Hope that Helps!