File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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: 31057
    
232

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: 31057
    
232

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: functional interface in Java 8