Capgemini interview question

Basic concept of fundamental java oops string spring