Minecraft Error

So my little brother just bought Minecraft today, but he's been having some technical problems with it. After a while the game will freeze up and then eventually give him an error that says his computer has run out of memory. He did some googling around and it seems like it's a pretty common problem, but he hasn't been able to find a solution.

Any ideas?

I've had that problem to. What I did was I downloaded Java 64 bit and that cured all of my Minecraft memory problems. 

Turn the openGL option OFF.

Also have him test his ram with Memtest86 just to eliminate any bad memory problems.

That was a common problem,  it was a memory leak in java.  I think that was fixed though

Yeah, he solved it just by uninstalling an old version of Java and installing the 64-bit version.