Mphasis Interview Question

1. how to create a thread in java? 2. what is the daemon thread? 3. Spark clusters types 4. SQL query - remove duplicate rows 5. How to handle null pointer?