I am new to GC and wondering what does garbage collector collect besides reference that are no longer being referencing by any variables ? The following is the list that I want to check
- Do primitive types (int, double, float, char....) get GC-ed ?
- Do static variables get GC-ed ?
- Do final variables get GC-ed (I think since it's marked as immutable, so there's nothing to collect) ?
- Do all the methods (both static and non-static) get GC-ed ?
- Do threads get GC-ed ?