Can an object be garbage collected while it is still
reachable?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
yes...all the garbage ollection things depends on the
garbage collector of JVM
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sudheer
Garbage collector is a low priority thread. We cant order to delete an object. When the object has no references and object which are out of scope will be deleted by the garbage collector to free the memory. So when an object is reachable it cant be garbage collected.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / janet
Once an object is garbage collected, it ceases to exist. It
can no longer become reachable again.
Is This Answer Correct ? | 0 Yes | 3 No |
What is heterogeneous in java?
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
Can you declare a private method as static?
Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.
what is purpose of collections.unmodified() method..?
What is executor memory?
what is jdk1.5 features?
How is final different from finally and finalize?
Is it possible for a yielded thread to get chance for its execution again?
What is the final method?
What are java methods?
What are void pointers?