Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. Using Runtime object. Runtime runtime = Runtime.getRuntime(); runtime.totalMemory(); runtime.freeMemory(); | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  jvm  memory management   rare | ||||
Related Questions | ||||
Does garbage collection guarantee that a program will not run out of memory? | ||||
What are different ways to create String Object? Explain. | ||||
What is a String Pool ? | ||||
Describe, in general, how java's garbage collector works ? | ||||
Describe what happens when an object is created in Java ? | ||||
What are various types of Class loaders used by JVM ? | ||||
Why two types of memory - stack and heap are required by Java ? | ||||
When are static variables loaded in memory ? | ||||
Explain java.lang.OutOfMemoryError ? | ||||
Should we override finalize method ? | ||||