Last active
September 4, 2018 12:04
-
-
Save ShwetaChauhan18/6bee64125fc94b4b48416bfe1117db4c to your computer and use it in GitHub Desktop.
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
public class BillPughSingleton { | |
private BillPughSingleton(){} | |
private static class BillPughSingletonInnerClass{ | |
private static final BillPughSingleton INSTANCE = new BillPughSingleton(); | |
} | |
public static BillPughSingleton getInstance(){ | |
return BillPughSingletonInnerClass.INSTANCE; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment