How to set the Heap size in Java ?
Answers were Sorted based on User's Feedback
Answer / ranganathkini
The heap size of the JVM can be set by specifying the
command-line flags -Xms and -Xmx
-Xms sets the initial heap size ( example: -Xms 30m )
-Xmx sets the maximum heap size ( example: -Xmx 70m )
Hope it helps! :)
| Is This Answer Correct ? | 11 Yes | 0 No |
what is mutability?which one is mutable String or StringBuffer?and why?give examples of each which shows the mutability of each String or StringBuffer
When should I use abstract classes and when should I use interfaces?
What one should take care of, while serializing the object?
How is a structure different from array ?
Which is not Object in Java?
What are meta-annotations?
When is the arraystoreexception thrown?
can abstract class have constructor how can you achive this ?
Can a variable be local and static at the same time?
difference between String a; and String a=new String();? y do v need to assign memory to the variable?
When throw keyword is used?
any other way to print the text without using System.out.println() in java?