What is java lang object?
No Answer is Posted For this Question
Be the First to Post Answer
Write a program in java to find the maximum and minimum value node from a circular linked list.
Is a char always 1 byte?
Explain the difference between runnable and callable interface in java?
How to implement an arraylist in java?
What is the synchronized method modifier?
can any one tell me when do u go for inheritance and polymorphism
What does microservices mean?
Difference between a process and a program?
How do you check if two given string are anagrams?
What is advantage of using threads?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
Differences between C and Java?