"Hi, Amigo!"

Interview questions
1 What is garbage collection?
2 When is the finalize method called?
3 What happens if an exception occurs in the finalize method?
4 What is a SoftReference?
5 What is a WeakReference?
6 What is a PhantomReference?
7 How does a WeakHashMap work? Where is it used?
8 Why do we need to pass a queue to the PhantomReference constructor?
9 Why do we need a logger?
10 What logger settings do you know?