Explore Network Navigate Register Login
  • Sign Up
  • Sign In
  • Home
  • ──
  • View
1

What is the purpose of a garbage collector in programming languages like Java or Python?

  • Zoya Shaikh
  • Apr 27, 2025
  • 2 answers
  • 3 times viewed

Give the correct answer of my question "What is the purpose of a garbage collector in programming languages like Java or Python?".
Select from the options below:

A) To optimize the execution speed of the program by caching frequently used data
B) To automatically manage memory by reclaiming unused memory space and preventing memory leaks
C) To ensure that all variables are initialized before use
D) To perform type checking and ensure data is consistent throughout the program

Add a comment

Tags computational analysis
Share

2 Answers

  • 2

    Zubair Bin Hasan

    April 27, 2025
    Indeed the option B

    Zoya Shaikh – Thank you very much – May 12, 2025 - 11:45

    Add a comment

    1

    Ziyan Shaikh

    April 27, 2025
    The option B is correct 

    Zoya Shaikh – Thank you for giving me right answer – Apr 27, 2025 - 20:17

    Add a comment

Write your Answer

Categories

Education Websites, IT & Software Accounting & Human Resources Health & Medicine

Recent Posts

Sign In

Welcome back!

To stay connected with the education world, login with your personal details.

Forgot Password?
Trouble logging in?

Enter your email, phone, or username and we'll send you a link to get back into your account..

Back to Login
New User? Register

Sign Up

Learner Master Boffin
Use 8+ characters with at least one number.
Use 8+ characters with at least one number.
Use 8+ characters with at least one number.
Already User? Login

SUPPORT

Privacy & Policy Refund Policy Terms & Conditions Coins & Pricing

For Users

How It Works - Boffin How It Works - Master How It Works - LearnerReport bug

ABOUT

About Us FAQs
© 2025 Cyfinex