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 Android Security Essentials Live Lessons this week in the Android 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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
 
Similar Threads
why java doesnot support pointer concept?
what is abstraction, how is it used in java
CallBack functions....
How do i call my function in JSP
How to create your own Marker interface in java?