Accenture interview question

Explain java database connection for mysql