Pergunta de entrevista da empresa Cognizant

Explain the OOP principles with examples. Write a SQL query to find the second-highest salary in a table. Describe your project and the role you played. How does garbage collection work in Java? Explain the difference between REST and SOAP APIs. What are joins in SQL, and when do you use them?