Intapp interview question

Difference between Varchar and Varchar2? Difference between string and string buffer? How many joins are there? What are they? Where will you see why SQL query is executing slow?