TCS Interview Question

Java : inheritance , collection