Java heap , out of memory and  dumping of heapspace

java.lang.OutOfMemoryError: Java heap space
Dumping heap to /tmp/java_pid43006.hprof ...
Heap dump file created [1085473 bytes in 0.015 secs]
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
	at
com.sks.skill.basic.garbageCollection.OutOfMemory.main(OutOfMemory.java:11)