Smoothstack interview question

What is the SQL and NON-SQL database? What's the singleton class in Java?