Indium Software interview question

Questions from java and oops concept