Skip to content

Instantly share code, notes, and snippets.

@viveknaskar
Last active October 22, 2020 14:26
Show Gist options
  • Save viveknaskar/c98d96f8f562b1d59719e58170ac5922 to your computer and use it in GitHub Desktop.
Save viveknaskar/c98d96f8f562b1d59719e58170ac5922 to your computer and use it in GitHub Desktop.
Functional Interface Example prior to Java 8
package com.viveknaskar;
public class FunctionalInterfaceExampleBeforeJava8 {
public static void main(String[] args) {
// Creating anonymous inner class object
new Thread(new Runnable() {
@Override
public void run() {
System.out.println("Functional Interface Prior to Java 8");
}
}).start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment