Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement