Cognizant Interview Question

All java 8 question