Hexaware Technologies Interview Question

oops, logical, family background, java code ,