Answer the question
In order to leave comments, you need to log in
Should collections be deleted? And how to do it right?
Hello!
In short, I fell ill here and, under a high temperature, the thought came to my mind that it was necessary to think about the topic - but am I, in fact, programming correctly. Well, after recovering, I took a look at my recent project and the following question popped up in my mind:
Let's say there is a certain function that works when a user pokes his wretched Chinese huyawei on the screen. This function is written something like:
ArrayList<Float> yaOsvoilColleKcii = new ArrayList<Float>();
Answer the question
In order to leave comments, you need to log in
Reduce the scope of variables, and then the JVM itself will take care of everything.
Is this some kind of trolling?
If not, read about the jvm memory model and the work of the garbage collector
RewriteCond %{QUERY_STRING} (^|&)id\=1($|&)
RewriteCond %{QUERY_STRING} (^|&)page\=2($|&)
RewriteRule .* odemix.ru/note1\?page2? [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question