• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

functional interface in Java 8

 
attrash kumar
Greenhorn
Posts: 3
Java MyEclipse IDE Objective C
  • 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: 34851
369
Eclipse IDE Java VI Editor
  • Likes 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
  • 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: 34851
369
Eclipse IDE Java VI Editor
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic