What is the use of :: operator wef from Java 8 ?
Javasearch.buggybread.com
Share

Search Interview Questions


 3358 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Java - Interview Questions and Answers

Rarely asked as it was introduced with Java 8.
 Q1. What is the use of :: operator wef from Java 8 ?Core Java2016-07-25 13:27:57

Ans. We can refer to a function using this operator like System.out.println(intList.stream().reduce(Math::max).get());

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     :: operator   lambda expression  java 8


Related Questions

  What is a Lambda Expression ? What's its use ?
  Difference between final and effectively final ? Why is effectively final even required ?
  Difference between Predicate, Supplier and Consumer ?
  What does the following lambda expression means ?
  Difference between DoubleSummaryStatistics , IntSummaryStatistics and LongSummaryStatistics ?
 What is a method reference in Java ?
 Lets say we have a set "set1" with objects of Class A, Class has a non static string called element1, Write a code ( using lambda expression ) to see if there is any object in the set with element1 = "Hello".
 Given a collection of Employee objects, how can we get the customers with name starting with 'A' using lambda expression.
 Why do you think lambda expressions are considered such a big thing for Java 8?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this