Thursday, July 28, 2011

[android-developers] Re: Static Initializers - interdependencies

On Jul 28, 10:26 am, Daniel Drozdzewski <daniel.drozdzew...@gmail.com>
wrote:
>
> No.
> The static initialisation of class A references class Main.
> This means that initialisation of class A will cause class Main to
> load, which in turn will run its initialisers.

And what if class Main happens to have static initializers that
reference some class A static variable. Then the references become
circular. How is that resolved?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment