answersLogoWhite

0

Dangling references and garbage, otherwise known as memory leaks, can occur in the same application and programming language. These symptoms are evidence of sloppy memory management by the programmer.

Dangling references and garbage collection cannot normally occur at the same time, as the garbage collector is not supposed to discard an item so long as there are still any references to it. Therefore, a reference can never "dangle" (i.e. refer to a no longer existing item).

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

When garbage value occur in c?

Garbage data in C, or in any programming language, occurs when a variable is read without having been initialized first.


What features must a programming language and its runtime environment provide in order to support automatic memory management?

garbage collection


Who performs the garbage collection?

A garbage truck. In computer programming, a process known as the garbage collector.


What does letters gigo stand for?

Regarding computer programming, GIGO means: garbage in, garbage out.


Garbagecolllecter in java?

Yes, Java programming language has a Garbage collector for unused memory. and the best part about it is that it does it automatically. The Garbage Collector is built into the Java Virtual Machine, and will do automatic garbage collection for you. If you chose to compile your Java code down to native code (via a Java->native code compiler), then NO garbage collection is done for you.


What is basic concept to programming in net c-sharp?

KWYD and GIGO (Know What You're Doing and Garbage-In, Garbage-Out)


2 What is the purpose of garbage collection in java and when is it used?

Garbage collection prevents memory leaks. In Java, the Java Virtual Machine will garbage collect whenever there is memory that has no references.


What do you mean by ''GIGO'' in computer education?

GI/GO is a computer programming term for Garbage In/Garbage Out. It means that if you have incorrect data input, then your output will be incorrect


When the number of references to an object becomes that object is marked for garbage collection?

When the object is no longer referenced anywhere else in your program, then the object becomes marked for garbage collection.


How do you delete an array object in java language?

The Java Virtual Machine takes care of all the actual deletion for you. Once an object no longer has any references left, the garbage collector will come along and clear up that memory automatically.


What is memory leak problemin java?

Memory leaks do not occur in Java as the garbage collector clears the memory which has no references.


What are the condition which can cause an object to be garbage collected?

A Java object is ready to be garbage collected if there are no active references to the object. Let us say you declare an object of type ArrayList inside a for loop and process it. That object is local to the for loop and once the loop is executed there are no open references to the array list. Hence after the method is executed this object would be eligible to be garbage collected. The JVM garbage collector would search for such unused/unreferenced objects and clear them.