Is it correct to say that due to garbage collection feature in Java, a java program never goes out of memory?
- 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.