Oracle Interview Question

How do you handle java and databse connection