Thursday, 17 March 2016

What are different ways to call Garbage collector ?


Garbage collection can be invoked using :
System.gc()
or
Runtime.getRuntime().gc()

No comments:

Post a Comment

Note: only a member of this blog may post a comment.