Advertisement
Guest User

Untitled

a guest
Nov 1st, 2010
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1.  
  2. public class Main {
  3.    
  4.     public static void main(String[] args) throws Exception {
  5.  
  6.         Test test1 = SingletonProxy.getInstance("test");
  7.        
  8.         test1.test();
  9.         System.out.println(test1.hashCode());
  10.        
  11.         Test test2 = SingletonProxy.getInstance("test");
  12.         test2.test();
  13.         System.out.println(test2.hashCode());
  14.        
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement