This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Simple question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Simple question" Watch "Simple question" New topic

Simple question

Manny Garcia

Joined: Apr 04, 2007
Posts: 28
I know that a java application has it's "sandbox" of memory allocated for it but what happens when an app uses up all of this memory? Does it freeze up, start using virtual memory, or something else?


Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Usually the JVM throws an OutOfMemoryError.
Consider Paul's rocket mass heater.
subject: Simple question
Similar Threads
WA #1.....word association
object references and memory space requirements
Concurrent user testing - File Upload
Java Heap Space Error, OutofMemory Exception while writing large data to excel sheet.
JVM memeory allocation