Manhattan Associates Interview Question

Q: What is encapsulation? Q: Can you describe the difference between final, finalize, and finally in Java? Q: Find the bug in this function.