aspose file tools*
The moose likes Features new in Java 8 and the fly likes functional interface in Java 8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Features new in Java 8
Bookmark "functional interface in Java 8" Watch "functional interface in Java 8" New topic
Author

functional interface in Java 8

attrash kumar
Greenhorn

Joined: Apr 22, 2012
Posts: 3

What is something new in functional interface which was not already existing in Java 7 ?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30929
    
158

The concept is new. A functional interface is an interface with one abstract method. This definition is important in Java 8 because you can use functional interfaces with functional programming more easily.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
attrash kumar
Greenhorn

Joined: Apr 22, 2012
Posts: 3

Jeanne Boyarsky wrote:The concept is new. A functional interface is an interface with one abstract method. This definition is important in Java 8 because you can use functional interfaces with functional programming more easily.

Can you please explain it with an example?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30929
    
158

attrash kumar wrote:
Jeanne Boyarsky wrote:The concept is new. A functional interface is an interface with one abstract method. This definition is important in Java 8 because you can use functional interfaces with functional programming more easily.

Section Approach 6 provides a good example.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: functional interface in Java 8