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

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -