This document contains 30 items related to Java concepts including lambda expressions, functional interfaces, date formatting, and time zones. The items cover features introduced in Java SE 8 like lambda syntax, built-in functional interfaces like Supplier and Function, and default methods. Date formatting is demonstrated using SimpleDateFormat to both format and parse dates. The document also addresses returning null from lambdas and checking if a TimeZone uses daylight savings time.
This document contains 30 items related to Java concepts including lambda expressions, functional interfaces, date formatting, and time zones. The items cover features introduced in Java SE 8 like lambda syntax, built-in functional interfaces like Supplier and Function, and default methods. Date formatting is demonstrated using SimpleDateFormat to both format and parse dates. The document also addresses returning null from lambdas and checking if a TimeZone uses daylight savings time.
This document contains 30 items related to Java concepts including lambda expressions, functional interfaces, date formatting, and time zones. The items cover features introduced in Java SE 8 like lambda syntax, built-in functional interfaces like Supplier and Function, and default methods. Date formatting is demonstrated using SimpleDateFormat to both format and parse dates. The document also addresses returning null from lambdas and checking if a TimeZone uses daylight savings time.
2. A) is true 3. Java SE 8 4. Supplier DoubleConsumer 5. @Override 6. all 7. Bipredicate 8. this program prints: doesn't contain 9. @ 10. Overriden 11. bar is a local variable 12. this program prints: -100 13. lambdas for both cannot return a null value 14. this program prints: v 15. all 16. This program prints: true 17.(argument-list)->{body} 18. get() method 19. will print the correct output 20.Function<string, Integer> 21.yes 22. DoubleFunction<Double> 23. LongConsumer 24. (Integer a, Double b) -> {int c; return b;} 25. Saved 26. SimpleDateFormat 27. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd"); sdf.format(new Date()); 28. SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd"); sdf.parse(new Date()); 29. false 30. useDaylightTime() of TimeZone class