Accelya Group interview question

fundamental java/oops based questions.