Explain garbage collection with python?



Explain garbage collection with python?..

Answer / Narendra Sharma

Garbage Collection in Python is the process of automatically freeing up memory used by objects that are no longer referenced or needed. The Python interpreter uses a combination of reference counting and mark-and-sweep algorithms to manage memory allocation. When an object's reference count reaches zero, it gets removed from memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is unlink in python?

1 Answers  


How will you get a 10 digit zero-padded number from an original number?

1 Answers  


What is head and tail method for data frames in pandas ?

1 Answers  


What is means by string python?

1 Answers  


How to share global variables across modules?

1 Answers  


What animal sleeps the most?

1 Answers  


What is the accomplishment you are most proud of?

1 Answers  


How to create prompt in the console window?

1 Answers  


Is python open source? If so, why it is called so?

1 Answers  


How many name spaces are defined in python?

1 Answers  


List out the different types of inheritance available in python?

1 Answers  


How does the ternary operator work in python?

1 Answers  


Categories