Vyoma Labs interview question

Basic of Java Oops n all