Last active
October 22, 2020 14:26
-
-
Save viveknaskar/c98d96f8f562b1d59719e58170ac5922 to your computer and use it in GitHub Desktop.
Functional Interface Example prior to Java 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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