Hexaware Technologies interview question

oops, logical, family background, java code ,