+ 3

How to free memory in java programming ?

i want to free the space used so there is any keyword or any thing I can do help me

11th Jun 2018, 6:41 PM
Null
Null - avatar
2 Réponses
+ 4
Java uses managed memory, so the only way you can allocate memory is by using the new operator, and the only way you can deallocate memory is by relying on the garbage collector. or you can also read this article https://stackoverflow.com/questions/1567979/how-to-free-memory-in-java?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
11th Jun 2018, 6:50 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
thanks you guys ! you guys are awesome
12th Jun 2018, 4:59 AM
Null
Null - avatar