Jump to content

Garbage collection

- - - - -

  • Please log in to reply
5 replies to this topic

#1
Pradeepa

Pradeepa

    Newbie

  • Members
  • Pip
  • 4 posts
I searched for garbage collection on the net and found out several different explanations for it .... Can anyone please explain to me the exact work of garbage collector in Java. I am comfortable with classes and have read about two classes in Java dedicated for garbage collection.

Thanks in Advance

#2
farrell2k

farrell2k

    Learning Programmer

  • Members
  • PipPipPip
  • 60 posts
How it works is very technical. The basics of it is basically no more reference to an object = no more object.

How Garbage Collection works in Java

#3
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP
Didn't the newest version of java change up the way garbage collection was handled?

#4
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
How it really works isn't written down in some spec or so. It can change every jdk / for every jvm. All you know is that it dumps objects where no life thread has a reference to.

#5
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP
You can get an idea how the newest version works here:
Garbage-First Collector

#6
Pradeepa

Pradeepa

    Newbie

  • Members
  • Pip
  • 4 posts
Thanx a lot al of u... I clarified out my doubt...




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users