Is it correct to say that due to garbage collection feature in Java, a java program never goes out of memory?

By ayush goel in 22 Sep 2023 | 11:42 am
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

Is it correct to say that due to garbage collection feature in Java, a java program never goes out of memory?

22 Sep 2023 | 11:42 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

 - While garbage collection helps manage memory, it does not guarantee that a Java program will never run out of memory. Memory leaks can still occur.

23 Sep 2023 | 04:11 pm
0 Likes

Report

Please describe about the report short and clearly.