Accenture interview question

2 java oop questions 1 sql