Infosys interview question

Jdbc conmectivity code