Guest User

Untitled

a guest
Aug 19th, 2019
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class DummyClass {
  2.  
  3. private static String a;
  4. private String b;
  5.  
  6. static {
  7. a = "a initialized";
  8. }
  9.  
  10. {
  11. System.out.println(a);
  12. System.out.println(b);
  13. }
  14.  
  15. public DummyClass() {
  16. b = "b initialized";
  17. }
  18.  
  19. public static void main(String[] args) {
  20. new DummyClass();
  21. }
  22. }
RAW Paste Data