NSEIT interview question

JDBC concept with code