what is difference between abstract factory and factory
design patterns?
No Answer is Posted For this Question
Be the First to Post Answer
Can memory leak happen java?
Is math class static in java?
How many threads can I run java?
Write code of any action class?
Program to print 1 1 2 1 2 3 1 2 3 4 like that
What is the requirement of thread in java?
Can we nested try statements 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 virtual functions?
What type of variable is error flag?
Can arraylist hold different types java?
Why we do exception handling in java and how many types of exceptions are there?