Can we define constructor in inner class?
No Answer is Posted For this Question
Be the First to Post Answer
What is singleton class and how can we make a class singleton?
What are the string methods in java?
What is the return type of read()?
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?
Is age discrete or continuous?
What is final access modifier in java?
What is a jagged array in java?
What is the difference between pageContext and page implicit objects in jsp?
9 Answers Gspann Technologies, Merrill Lynch, Polaris,
What is abstract class? Explain
what is mean by ooad? where we are using? can you tell me any real time example?
What is method Overriding in the perspective of OOPS?
What is a buffer in computer?