What is update method called?
No Answer is Posted For this Question
Be the First to Post Answer
Is an object null?
why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why these methods are placed in Object class?
2 Answers Global Logic, Satyam,
How many objects are created for a singleton class
Can we print null in java?
Can we iterate through collection using for loop?
Are the equals() and hashCode() protected methods of object class?
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?
Can main() method in java can return any data?
What is the base class of all exception classes in java?
Variable of the boolean type is automatically initialized as?
Explain inner classes ?
what is difference between Interface and abstract class