Infosys Interview Question

1. Difference between delete and truncate command in sql. 2. Dependency injection in spring. 3. Writing custom exception in spring framework. 4. Difference between list and linkedlist.