European Dynamics interview question

how can you connect a java app with a database?