This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java.lang.OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.lang.OutOfMemoryError" Watch "java.lang.OutOfMemoryError" New topic


Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
what is this error all about???
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
often caused by a small error in your code

here's an example (printing the alphabet after your name)

name += name + (char)(x+65);//will generate 'OutOfMemory'

code should be either
name += (char)(x+65);
name = name + (char)(x+65);
wood burning stoves
subject: java.lang.OutOfMemoryError
It's not a secret anymore!