Morgan Stanley Interview Question

some knowledga base question about java fundamental and java 8