Infosys Interview Question

How to choose between hibernate and jdbc