What is a Garbage collector?

What is a Garbage collector?

- It is a form of automatic memory management.

- It removes the unreferenced objects from heap memory.

Garbage collector has two main goals:

1. Unused memory should be freed.
2. No memory should be freed unless the program will not use it anymore.

- It can prove that unused memory will never be used again.
What is Interning?
What is Interning? - Interning is the process of converting duplicated strings to shared ones. Interned Strings avoid duplicate......
String vs. StringBuffer class
String vs. StringBuffer class - String class is immutable which means it can't be modified once declared.....
Significance of StringTokenizer class
Significance of StringTokenizer class - This class is used to break the string into tokens.....
Post your comment