Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Is it possible to invoke garbage collector explicitly in Java?

user-image
Question added by Deepthi Jose
Date Posted: 2014/07/31
Deleted user
by Deleted user

We can invoke, but there is no guarantee to collect the garbage. It depends on the algorithm followed in JVM.Ex. to call garbage coll. System.gc();

S Thirumalai Venkatesan
by S Thirumalai Venkatesan , Technical Lead , Fatpipe Networks India Ltd

Yes, We can. But it won't be necessary most of the time

Deleted user
by Deleted user

yes

Rajesh Angira
by Rajesh Angira , Technical Leader , Gensparc Technology (P) Ltd.

No

More Questions Like This