I am asked several times there two questions in interviews and I need a good answer to give for it if I am asked it in my next interview.
1. What is Garbage Collection in java? how it works in java?
2. Why there is no concept of destructors (like in c++) in java?
Please suggest some good answer to give for these questions at the time of interviews.
Thanks in advance.