When System.runFinalization use () and System.gc ()? [java program] [gc]

admin / October 15th, 2010/ Posted in Software / No Comments »

Q: Hi, When I System.runFinalization

() and System. () into a ? Thanks in advance!


Re:No, you should probably leave the Java virtual machine to its own garbage collection devices rather than force a full garbage collection cycle. Unless you are writing something that is allocating extremely large amounts of memory, there is no need to force a garbage collection.

Re:So should I use them together ??

Re:So …. do u like these functions ?? Tell me….

Re:because some people like the control.

Re:Then why Java still offering this function ?? Thanks a lot for your valuable comment !!!!

Re:You shouldn't have to for most applications. The Java VM does a pretty good job cleaning up after itself automatically.

Related posts


Tags: ,

Leave a Reply

Name required

Mail (will not be published) required

Website