The Artima Developer Community
Sponsored Link

Java Buzz Forum
Java 8 – java.util.function.Function example

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Arpit Mandliya

Posts: 190
Nickname: mandliya23
Registered: May, 2017

Arpit Mandliya is Java programmer working on Core java, Spring, Hibernate
Java 8 – java.util.function.Function example Posted: Oct 24, 2017 10:56 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Arpit Mandliya.
Original Post: Java 8 – java.util.function.Function example
Feed Title: Java tutorial for beginners
Feed URL:
Feed Description: A blog about java programming language and its frameworks
Latest Java Buzz Posts
Latest Java Buzz Posts by Arpit Mandliya
Latest Posts From Java tutorial for beginners


In this post, we will see about java.util.function.Function functional interface. java.util.function.Function is part of java.util.function package. There are some inbuilt functional interfaces in java.util.function which you can use if functional interface matches with your requirement. java.util.function.Function is a functional interface which takes input single argument T and returns result R. It has an abstract method as below. Let’s understand with the help of an example. Java 8 function example When you run above program, you will get below output: Square root of 49: 7.0 Square root of 68: 8.246211251235321 andThen function It is default function and returns a composed function

The post Java 8 – java.util.function.Function example appeared first on Java2Blog.

Read: Java 8 – java.util.function.Function example

Topic: How to create a new instance using newInstance method of class Object | Reflection in java Previous Topic   Next Topic Topic: How to determine the Class object | Java Reflection | Reflection in java

Sponsored Links


Copyright © 1996-2018 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use