JVM garbage collection
I have a question about JVM garbage collection. I know that everytime i use the "new" operator it allocates the memory, so if i do it like this:
width = 1000;
height = 1000;
for(int i = 0; i < 1000; i++)
BufferedImage bi = new BufferedImage(1000,1000,BufferedImage.TYPE_INT_ARGB );
Will i get a out of memory problem? i mean will JVM allocates 1000 different memory location for "bi". or will JVM discard some of the "bi" that got created earlier when it is about to run out of memory.
Also, where is the JVM forum? i hope i put this message in the right place.