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().
Thanks.

freeMemory() -
Returns the amount of free memory in the Java Virtual Machine

totalMemory()
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!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.