package com.corejava;

public class ObjectInStaticBlockDemo {

	static {
		ObjectInStaticBlockDemo obj = new ObjectInStaticBlockDemo();
		System.out.println(obj);
	}
	
	public static void main(String[] args) {
		
	}
}

@@ -60,16 +60,57 @@
 mo %7B%0D%0A%0D%0A
+%09static ObjectInStaticBlockDemo obj2;%0D%0A%0D%0A
 %09static 
@@ -112,16 +112,16 @@
 atic %7B%0D%0A
-
 %09%09Object
@@ -201,19 +201,265 @@
 tln(
+%22
 obj
+: %22 + obj);%0D%0A%0D%0A%09%09System.out.println(%22obj2 Before instantiation: %22 + ObjectInStaticBlockDemo.obj2);%0D%0A%09%09ObjectInStaticBlockDemo.obj2 = new ObjectInStaticBlockDemo();%0D%0A%09%09System.out.println(%22obj2 after instantiation: %22 + ObjectInStaticBlockDemo.obj2
 );%0D%0A%09%7D%0D%0A
 %09%0D%0A%09
@@ -454,19 +454,18 @@
 );%0D%0A%09%7D%0D%0A
-%09
 %0D%0A
+
 %09public 
@@ -499,18 +499,83 @@
 rgs) %7B%0D%0A
-
 %09%09
+System.out.println(%22obj2 main: %22 + ObjectInStaticBlockDemo.obj2);
 %0D%0A%09%7D%0D%0A%7D%0D

create static reference directly