Register now or log in to join your professional community.
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();
Yes, We can. But it won't be necessary most of the time
No