Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why Does Java Have Automatic Garbage Collection N Multi-Threading?

0
Posted

Why Does Java Have Automatic Garbage Collection N Multi-Threading?

0

Ans : OK, so that’s really two questions. One of D priorities in creating D Java language was 2 keep D language simple. Or more specifically, D goal was 2 avoid a lot of D complexities of C++. One of D common complaints about coding is D work you must do 2 manage your memory, not 2 mention D consequences if you don’t do it properly. Studies have shown that up 2 50% of a programmer’s time, when using non-garbage-collected languages such as C N C++, goes into managing memory storage. And, a significant amount of debugging time goes 2 ward tracking down memory-related bugs. The beauty of D Java Virtual Machine is that it takes care of memory management for you. This process is called automatic garbage collection. A low-priority thread periodically scans your applet’s memory for unused objects N recycles D memory D y were using. It does this by keeping track of what parts of your program R using memory, N determining when those chunks of memory R no longer needed. Many programmers mistaken

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123