Capgemini Interview Question

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