Java: Garbage Collector Avoid OutOfMemory?

inicial › Forums › Java › Java: Garbage Collector Avoid OutOfMemory?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2292618
    matheusdba
    Keymaster

    Does the garbage collector guarantees that the program will not run out of memory?

    #2292619
    matheusdba
    Keymaster

    Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.