Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. class test {
  2. {
  3. System.out.println("one");
  4. }
  5. static {
  6. System.out.println("static one");
  7. }
  8.  
  9. public static void main(String[] args) {
  10. new test().run();
  11. new test().run();
  12. }
  13.  
  14. private test() {
  15. {
  16. System.out.println("two");
  17. }
  18. }
  19.  
  20. {
  21. System.out.println("three");
  22. }
  23.  
  24. static {
  25. System.out.println("static two");
  26. }
  27.  
  28. public void run() {
  29. System.out.println("hmm...");
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement