Infosys interview question

The interviewer asked me questions like 1)Explain OOPS concept in Java and write code for it? 2)Write sql query to update rows in database based on give email id? 3)Explain DDL and DML and asked about commit and rollback commands? 4)Given some code snippets to trace output?