Explain inner classes ?
No Answer is Posted For this Question
Be the First to Post Answer
Why do inner class cannot have static declaration except static nested class?
how to make a un-checked exception as a checked exception one.
What is a memory leak in java?
What is an infinite loop?
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?
Thanks A.jyotsna, Can u tell me differnce between abstract class and interface vikash
What is a stringbuilder?
What is collection sort in java?
Difference between string, string builder, and string buffer?
Can we overload run() method in java?
What is difference between c++ and java ?
Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why not with interface? Thanks in advance.