SEED Infotech interview question

Java fundamentals oop concepts