Pearson interview question

How object oriented concepts are used in Java