Synechron Interview Question

abstraction in java