HCLTech Interview Question

about thr oops concepts in java