java - is it possible to have multiple instances of static variables -


is just an example of static variables (that they are part of the class). East: Math P.

Is there any way that there can be many examples of stable variables? I have heard that something related to Classloaders?

If you think you need multiple instances of static variables, this is a strong signal that you are the first The static variable should not be used in place.

Yes, if the same class is loaded into different class loaders, then the class copy will have its position. However, there is only one code that can be static for those statics, the class loaded by the same class loader. And of course, that code will only look at the (statically) position in a copy of the class. So maybe you have not achieved a lot.

Instead of roaming with classloaders, you should refactor your code to change the fixed variable to the frequency variable.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -