Infosys interview question

String, strin builder,stringbuffer explain Write SQL query