Multiple choice

Which of the following methods of Runtime class returns the approximate number of bytes of free memory available to the Java run-time system?

  1. gc()

  2. getRuntime()

  3. freeMemory()

  4. halt()

  5. totalMemory()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This method of Runtime class returns the approximate number of bytes of free memory available to the Java run-time system.