OutOfMemoryError.
Dear Friends,
I am developing a software in which I need to keep millions of long data values.
I am storing them as LinkedList which conatains arrays of long values.
But, after few million long values program is throwing OutOfMemoryError.
I don't want my program to crash this way.
Is there any way to know this situation at this particular point I want to drop few arrays from the LinkedList.
Any help will be great.

