V
V
vadim08722017-09-22 00:33:40
Java
vadim0872, 2017-09-22 00:33:40

Unloading java classes?

Under what conditions is a custom class unloaded in java, and in particular android? There is a static class that is initialized when the application starts, what is the probability that at some point the jvm will not unload this class? Or what can be done to prevent it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-09-22
@zolt85

EMNIP, Dalvik does not unload classes. If you are catching java.lang.NoClassDefFoundError, then most likely the class was not loaded by the classloader at all. Here it is already necessary to smoke logs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question