What is type safety in java?
No Answer is Posted For this Question
Be the First to Post Answer
Write an algorithm for quick sort?
What part of memory - Stack or Heap - is cleaned in the garbage collection process?
Is stringwriter thread safe?
What is bifunction in java?
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?
What are the advantages and disadvantages of reference counting in garbage collection?
Garbage collection in java?
What is java and their uses?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What do you mean by local variable and instance variable?
What are the advantages of functions?
What is return code?