Infosys Interview Question

how do you establish connction with Database in java