Sunrise Innovsol interview question

Simple Java and oops concept questions.