garbage collection - What does it mean for the storage for an object to be reused in Java? -


in §12.6 of java language specification, says:

the java programming language not specify how finalizer invoked, except happen before storage object reused.

what mean storage of object reused?

do need worry happening objects randomly @ runtime (e.g: overwrites object while i'm using it)? if so, how can prevent this?

what mean storage of object reused?

do need worry happening objects randomly @ runtime (e.g: overwrites object while i'm using it)?

the semantics of java don't expose such phenomena anywhere far know, think doesn't mean anything, it's implementation detail, or, "informative" comment.

in other words, phrase:

except happen before storage object reused. 

is equivalent saying nothing, doesn't have effect on how should implement conforming java compiler.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -