title: Difference between -XX:+PrintGC and -verbose:gc
body: <p>I want to understand the difference between:
  <code>-XX:+PrintGC</code> and <code>-verbose:gc</code>
  Apparently these look similar.</p>
  
  <p>This article doesn't list the <code>verbose:gc</code>
  <a href="http://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html" rel="noreferrer">http://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html</a></p>
  
  <p>I also saw these two questions: <a href="https://stackoverflow.com/questions/1161647/how-to-redirect-verbose-garbage-collection-output-to-a-file">How to redirect verbose garbage collection output to a file?</a> and <a href="https://stackoverflow.com/a/1818039/2266682">https://stackoverflow.com/a/1818039/2266682</a>
  but couldn't get much understanding.</p>