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
Enlist few advantages of inheritance?
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?
How many bytes is a string in java?
What are the types of classes in java?
What are the disadvantages of object oriented programming?
Which variables are stored in stack?
Write the program numbers into words.For example 2345==two thousand three hundred fourty five
What is the difference between numeric and integer?
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?
What do you understand by weak reference?
Can we pass a primitive type by reference in java? How
Is nullpointerexception checked or unchecked?