Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) throws Exception {
- Test test1 = SingletonProxy.getInstance("test");
- test1.test();
- System.out.println(test1.hashCode());
- Test test2 = SingletonProxy.getInstance("test");
- test2.test();
- System.out.println(test2.hashCode());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement