Cognizant interview question

Basic oops questions, Basic core java questions