Pergunta de entrevista da empresa ByteDance

Explain the concept of object-oriented programming and its advantages. Describe the difference between a class and an object. How would you handle an unexpected error in your code? Explain the difference between SQL and NoSQL databases.