Jan 17
Following Bharath Ganesh’s post I copied his code piece and tried it. The result was 1.
“Great”, I thought, “The problem must be in his JVM, whatever that is.”
Just for a small test, I added another line, s2 = null, right before the call to the garbage collector. The result was still 1.
First null wasn’t a constant, and now this!
Liked Chaotic Java? It's free! But I also make some other things that aren't, which you might like. Like Firewall, a rule changing, turn based strategy game for iOS.