One of the features of Java is auto-garbage collection. It frees the coder from keeping track of deallocating memory, though you can request garbage collection.
Which of the following can request garbage collection?
a) Runtime.free()
b) Runtime.getRuntime().gc()
c) System.gc()
d) System.clear()
Created by Nancy K.A.N.
@12:46 15-09-2025
No comments:
Post a Comment