TE Connectivity interview question

Java and database related questions.