P Pushkar • 380 Points Valuable Bookmark Embed Report View In MB-Short Q. Which of the following is not a valid lambda expression in Java 8? (A) (int x, int y) -> x + y (B) () -> “Hello, World!” (C) (String s) -> System.out.println(s) (D) (int x) -> {return x*x;} Correct Answer - Option(C) Views: 247 Filed under category JAVA Share
Discusssion
Login to discuss.