How does garbage collection work?

I am a new worker in Java,
I want to JVM performs garbage collection but I can't It shall be helpful if any person gives me a good advice.
What is the correct syntax for suggesting that the JVM perform garbage collection?
