Capgemini interview question

JDBC code to get the record from the database and display in the HTML page