File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

functional interface in Java 8

 
attrash kumar
Greenhorn
Posts: 3
Java MyEclipse IDE Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is something new in functional interface which was not already existing in Java 7 ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33713
316
Eclipse IDE Java VI Editor
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
attrash kumar
Greenhorn
Posts: 3
Java MyEclipse IDE Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33713
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic