Created
April 14, 2018 04:14
-
-
Save surajdubey/b9f98716c9b741953ac87a603681a95b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class EagerSingleton { | |
| private static EagerSingleton singletonInstance = new EagerSingleton(); | |
| public static EagerSingleton getInstance() { | |
| return singletonInstance; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment