Meaningless Drivel is fun!
The moose likes Programming Diversions and the fly likes java memory puzzle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "java memory puzzle" Watch "java memory puzzle" New topic

java memory puzzle

Venkata Kumar
Ranch Hand

Joined: Apr 16, 2008
Posts: 110

I have seen this program in

The program is throwing run time exception "java.lang.OutOfMemoryError". It looks like byte data pointed by data is not garbage collected after block scope. I am not sure why this is happening. Any comments on this?


SCJP 5.0, SCWCD 5, preparing for SCDJWS
Adam Michalik
Ranch Hand

Joined: Feb 18, 2008
Posts: 128
Search first: this question has already been asked.
I agree. Here's the link:
subject: java memory puzzle
It's not a secret anymore!