Basic java and new feature of java 8