Pergunta de entrevista da empresa RTX

Was asked the difference between two Java concepts. Was not entirely sure but had an idea and it was OK.