Cognizant interview question

1.Java (File handling) Threading and oops concepts