Static initaializer block & forward referencing -Question from SCJP 6 book by Khalid Mughal
Lucky J Verma
posted 8 years ago
I have a question on static initializer block and forward referencing from khalid mughal scjp 6 book -page 411/ch 9 topic 9.9
It says in static initializer block too -follows declaration -before-use rule
As per this following example should fail .....One variable sf1 is declared ,defined and use in difference static blocks and not in order of declration-then define-then use.