Synechron interview question

abstraction in java