WHAT IS GARBAGE COLLECTOR AND HOW IT IS USED

Ads

 
 

Share on Google+Share on Google+

k nagarjuna reddy
WHAT IS GARBAGE COLLECTOR AND HOW IT IS USED
1 Answer(s)      2 years and 9 months ago
Posted in : Java Beginners

WHAT IS GARBAGE COLLECTOR AND HOW IT IS USED

Ads
View Answers

March 12, 2015 at 3:06 PM


The garbage collector collects garbage. When you create object they produce garbage, and the garbage collector gets rid of this garbage.


Ads









Related Tutorials/Questions & Answers:
WHAT IS GARBAGE COLLECTOR AND HOW IT IS USED
WHAT IS GARBAGE COLLECTOR AND HOW IT IS USED  WHAT IS GARBAGE COLLECTOR AND HOW IT IS USED   The garbage collector collects garbage. When you create object they produce garbage, and the garbage collector gets rid
Garbage Collection
; In the example we are describing how the garbage collector works... are creating three objects to give the garbage collector something to do, then we... in milliseconds into a long type variable then calling the garbage collector method
Advertisements
Code for Garbage Collection
to force a garbage collector to work by creating many objects. Description... collection. First of all we have created an object for the garbage collector... the garbage collection on that object. Then we have used the System.currentTimeMillis
java - Java Beginners
java  how tha garbage collector know that the object will be deleted? on which algorithm the garbage collector works? what is the working principle of garbage collector? How manay types of garbage collectors r
What is garbage collection? - Java Beginners
What is garbage collection?   Hi, Tell me about garbage collection. How garbage collection works in java? Thanks   Garbage... the un-used objects. Only JVM automatically runs the Garbage collection process
Java garbage collection
Java garbage collection  How many times may an object's finalize() method be invoked by the garbage collector
garbage collection in java
will learn how to force a garbage collector to work by creating many objects.... First of all we have created an object for the garbage collector to perform some operation. Then we have used the System.gc(); method to force the garbage
garbage collector - Java Interview Questions
How Garbage Collector Works   how does Garbage Collection works?  Garbage Collection in JavaGarbage Collector Garbage collection"... unreferenced objects on the fly. if you want more details about Garbage Collector
Core Java Interview Question, Interview Question
? Answer: setBounds() Question: How many bits are used to represent Unicode... that are not subject to garbage collection Question: What restrictions... be invoked by the garbage collector while the object is still reachable. However
About Constructor
About Constructor  How many objects are create when this code... of object of string which will create . All are those are eligible for garbage collector + not eligible both. Please Reply ASAP Thank you Ashvin Jain
Core Java Interview Question, Interview Question
objects. The garbage collector must somehow determine which objects are no longer... collector must run any finalizers of objects being freed. Question: How you can... and can't be forced. We can call garbage collector in Java by calling System.gc
Core Java Interview Question, Interview Question
an object's finalize() method be invoked by the garbage collector? Answer: An object's finalize() method may only be invoked once by the garbage collector...;     Question: What invokes a thread's run() method
Core Java Interview Question, Interview Question
() method invoked by the garbage collector? Answer: The garbage collector invokes... unreachable. Question: How are this() and super() used with constructors? Answer...: Window, Frame, Dialog, File Dialog, Panel, Applet, or ScrollPane Question: What
Core Java Interview Question, Interview Question
. In the process of freeing unreferenced objects, the garbage collector must run any finalizers of objects being freed Question : How you can force the garbage... be forced. We can call garbage collector in Java by calling System.gc
what is web .config method
context is used but not ServletConfig what is use of the servletconfig... Servlets Questions 1)What is web.xml? 2)what is the filter? 3)How to we create... collector of the JVM. JSP Comments What are the ways to write comments
Core Java Interview Questions!
? What is its use? Answer: Iterator is an interface which is used to step... it is the job of the garbage collector to automatically free the objects... from java.lang.Object, the finalize() method is called by garbage collector
OBJECT CLASS - Java Interview Questions
OBJECT CLASS  How To Find Out How many Objects Create?How Many Object Are Reachabule To Garbage Collector?i want Source code Plz Help me........?urgentttttttttttttt  To find the number of objects created
Core Java Interview Question, Interview Question
by reference Question: What is garbage collection Answer: The runtime...-priority thread that is referred to as garbage collector. When the gc finds memory...() guarantee garbage collection Answer: No Operators and assignment Question: What
Chapter 7. Validate, tune and troubleshoot an application within an IBM WebSphere Application Server environment
created, amount of memory used, garbage collection, and amount of time spent... are held in memory. Also, invoke the garbage collector from the same right..., profiling is similar to debugging. Both are used to examine application flow
Beginners Java Tutorial
of If - Else construct. How the If - Else construct used to flow the program control... as we will know how many tokens has been generated. That's what we are trying... automatically by the garbage collector when the program ends.   Example
Java Virtual Machine(JVM)
error". The Java runtime employs a garbage collector to  reclaim...;  Ques:-What is Java Virtual Machine? Ans:- Java Virtual... . The architecture of the JVM is given below . This architecture tell us how the JVM
Applet versus Application
() Manually invokes the garbage collector. Note that unless garbage collection... are typically used. Applications and applets have much of the similarity... an encryption key is used for the verification purpose for a particular applet
Object Class Methods in Java
of finalize(). The garbage collector calls the finalize method of Object class before.... The finalize method is called before garbage collected, the runtime system call its... and we use equals method when an object is store in a hashtable. How to compare
Explore in Tamil Nadu India
collector has visited the place and has constructed a tiny bungalow. Finally in 1845..., and Anaikunthi Shola, waterfalls, teak forests and groves and so on. How to Reach

Ads

 
Advertisement null

Ads