How is it ...
Terms and Conditions
How is it possible (if it is) to allocate more memory for the Java Virtual Machine.
JVM should be started with a -Xmx key followed by a specific amount of memory. For example -Xmx256m.
A Runtime.getRuntime().maxMemory(); method should be called and JVM will automatically increase the maximum amount of memory.
It is not possible to allocate a specific amount of memory to JVM, it will be determined automatically depending on the amount of RAM.
In order to allocate a specific amount of memory to JVM it should be started with certain keys. For example, a -Xmx key specifies the maximum amount of memory, while a -Xms key specifies the initial amount of memory.
java virtual machine
Select a Java disassembler that is included into a standard JDK....
The following class was launched with a -ea key. What is the result of following...
How can an object be destroyed in Java?...
What is JRE?...
Is guaranteed that the garbage collection will start after calling Runtime.getRu...
Login to learn Java
Read more about
Sign Up Now
Subscribe for future quizzes