Can an object be garbage collected while it is still
reachable?

Answer Posted / ravikiran(aptech mumbai)

yes...all the garbage ollection things depends on the
garbage collector of JVM

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is valid keyword in java?

556


What are data types in oop?

551


what are synchronized methods and synchronized statements? : Java thread

581


How to display all the prime numbers between 1 and 100

503


What must a class do to implement an interface in java programming?

535






What does it mean that a method or field is “static”?

550


What is the final method?

601


What is the difference between abstract class and interface1? What is an interface?

558


Wha is the output from system.out.println(“hello”+null); ?

690


Why do we declare a class static?

544


What is a substitution variable?

565


What is stringjoiner ?

577


I want to print “hello” even before main is executed. How will you acheive that?

659


Can we declare a class as static?

593


Explain about collection interface in java?

546