What is garbage collection? What is the process that is responsible for doing that in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

Enlist few advantages of inheritance?

0 Answers  


how tha garbage collector know that the object will be deleted? on which algorithm the garbage collector works? what is the working principle of garbage collector? How manay types of garbage collectors r there?

1 Answers   HP, SparkTG,


How many bytes is a string in java?

0 Answers  


What are the types of classes in java?

4 Answers   HCL,


What are the disadvantages of object oriented programming?

0 Answers  






Which variables are stored in stack?

0 Answers  


Write the program numbers into words.For example 2345==two thousand three hundred fourty five

2 Answers   TCS,


What is the difference between numeric and integer?

0 Answers  


interface X{ void m1(); void m2(); } class Child2 extends Object implements X { public void m1(){ System.out.println("Child2 M1"); } public void m2(){ System.out.println("Child2 M2"); } } public class ParentChildInfterfaceDemo { public static void main(String[] args){ X x = new Child2(); X x1 = new Child2(); x.m1(); x.m2(); x.equals(x1); } } Will the above code work? If yes? Can you please explain why the code x.equals(x1) will work as the equals method is called on interface reference vaiable?

2 Answers  


What do you understand by weak reference?

0 Answers  


Can we pass a primitive type by reference in java? How

0 Answers  


Is nullpointerexception checked or unchecked?

0 Answers  


Categories