BNP Paribas Interview Question

What is a repository and how can you access it in Java code?