How is a static variable handled by the garbage collector and where do they allocate memory? on the heap or the stack (as member variables) Please clarify this for me.
Static variables are only suitable for garbage collection, when the class itself is garbage collection, and classes are only suitable for garbage collection if the class loader loading them collects garbage.
See JLS § 12.7 :
, , . 12.6. , , .
.
Source: https://habr.com/ru/post/1748342/More articles:Pass global value of javascript array to HTML tag - javascriptКак вы определяете, какие исполняемые и DLL файлы создает проект С# Visual Studio? - c#iPhone: кнопка "Проголосовать в AppStore" - objective-cSet values of hidden form fields using JavaScript, but request something else empty - javascriptStored functions with Linq for objects - c #Optional Zend Route Regex - regexFatal error: function name must be a string in. PHP Error - methodsSpecifying Relative Paths in SPSS 18 - relative-pathIncorrect macro definition in C ++ - c ++HTML5 Database Operations - databaseAll Articles