What are abstract classes and anonymous classes?
No Answer is Posted For this Question
Be the First to Post Answer
Difference between abtsract & final
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 is default exception handling in java?
What is the difference between throw and throws?
Explain wait(), notify() and notifyall() methods of object class ?
How is the marker interface used in Java?
Why string is a class?
Tell us something about set interface.
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
Can a constructor call the constructor of parent class?
What is meant by structural programming?
what is wrapper class and its uses?