Why Does Java Have Automatic Garbage Collection N Multi-Threading?
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