Monthly Archives: September 2013
Collection Framework interfaces in java
Collection Framework interfaces are
1.java.util.Collection(1.2v)
2.java.util.List(1.2v)
3.java.util.Set(1.2v)
4.java.util.SortedSet(1.2v)
5.java.util.NavigableSet(1.6v)
6.java.util.Queue(1.5v)
7.java.util.Map(1.2v)
8.java.util.SortedMap(1.2v)
9.java.util.NavigableMap(1.6v)
How to increase heap size in eclipse?
If you want to increase Eclipse’s JVM memory,by using the below code
-Xms256m
-Xmx4906m
How to increase heap size in jvm?
It depends upon the application.
If you are running your java code from command line by using java executable,
then you can simply pass these parameters as arguments to java executable.
Code Snippet:
java -Xms256m -Xmx2096m
-Xms set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
By using the above code we can change the heap size
Example:
java -Xms256m -Xmx2096m StringDemo