jvm - Do java objects get removed when a java application closes? -
i've been learning java , how uses garbage collection vs manual deallocation of objects. couldn't find answer whether java objects removed when java application closes or not? happens in jvm when, say, small console application object
public class hello { public string name = "y_y"; }
exists in memory , console application closed?
thanks, y_y
when application closes, jvm stops running , of memory returned host.
for practical purposes, heap , object allocated there stop exist.
if you're concerned security, process raised privileges able scan memory , read whatever's left around. have before memory gets allocated process. happen while original program/jvm running.
Comments
Post a Comment