C
C
ceramicthree2020-05-31 22:00:23
Java
ceramicthree, 2020-05-31 22:00:23

Does the Garbage Collector release the memory used in a static method after it is used?

For example, if variables and arrays are created in a static method for any purpose, will the Garbage Collector release the memory allocated for these variables and arrays after using this method?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Romanov, 2020-05-31
@ceramicthree

Of course it doesn't matter if it's static or not

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question