Is it compulsory that finalize()
method will be called every time we call System.gc()
explicitly in Java?
1. How to Handle Java Finalization's Memory-Retention Issues
I want to understand above link
2. I understand that finalize() will not be called every time we call System.gc() explicitly, But Now the question is why it happens that sometimes it get called and sometime not? I think I have made my question more valuable now.