Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DummyClass {
- private static String a;
- private String b;
- static {
- a = "a initialized";
- }
- {
- System.out.println(a);
- System.out.println(b);
- }
- public DummyClass() {
- b = "b initialized";
- }
- public static void main(String[] args) {
- new DummyClass();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement