This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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!