java - Is the class loading different between standard JVM and Android Dalvik -


the question might bit vague because i'm not sure how put scenario context.

i'm trying implement factory pattern object creation on current java program, standalone app. tried use self-registering way of creating object list in factory, detailed in here

i encountered error along way though, static block in object never executed, , list remained empty. did bit of research , found static block executed 1 time, during time when class loaded jvm.

that wonders me though, because i'd used same method on android application before, , worked without issue. static block execute register object factory.

is there difference between these 2 vm causing behavior?

thank you


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -