3Pillar Global Interview Question

Questions are mostly on core Java and spring boot, 1. What is semaphore and volatile? 2. SQL Joins 3. Pattern Printing