garbate collector(GC)?
Answers were Sorted based on User's Feedback
Answer / prabir kumar
1) it is a automatic memory management utility run by JVM.
2) the JVM cleaning the objects from the memory which are
no longer being referenced.
3) the object that is not instantiate or containl null is
also applicable for garbage collection.
3) explicitly running garbage collector is very expensive.
4) to run the garbage collect call the static method of
System class e.g. System.gc();
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / aditya mohata
it's an built it procedure in java which takes place as we
are finished wid our programs,so as to nullify the already
existing objects in the file.it's as an desturctor in c++.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / reddy
JVM Automatically reclaims the memory used by an object.When
no variable is referred to that object.
| Is This Answer Correct ? | 1 Yes | 0 No |
Write a java program to get a string of words and print the numbers of each word count in descending order
What is java and their uses?
Is void a wrapper class?
Is array synchronized in java?
How to sort a vector elements that contains the user define class object? (Note: If Suppose consider, A Student class contain two data members. They are String studentName and int rollNo. I am creating Four objects for this class, each object contains students details like name and roll no. Now i am storing that objects in vector and if i retiving the elements from the vector means then it should be display in sorting order)
3 Answers ProdEx Technologies,
What is the common usage of serialization? What exceptions occur during serialization?
Can we call a non-static method from inside a static method?
what is the purpose of "virtual"?
What is static data type in java?
What is method reference in java?
What does sprintf mean?
Why we use protected in java?