How GC (Garbage Collector) knows the objects reference is
unused.Whether GC removes the unused object Parmanently or
it maintains something.
Answer Posted / balamurugan
it checks whenever we will not used the objects in our
program then jvm checked with forward referenceduse help of
heap memory. then gb removes the un used objects
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does it mean that a class or member is final?
What is primitive data type in java?
What does index mean in java?
What is the difference between sop and work instruction?
What is arraylist e in java?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
Who is founder of java?
What is navigable map in java?
What is method reference in java?
Can we use catch statement for checked exceptions?
What is thread life cycle in java?
Explain how hashmap works?
Is singleton thread safe in java?
What is data string?
What are the Static and Dynamic Variables? Differentiate them.