title: Difference between %n and \n for printing a new line in Java
body: <p>The documentation of Java specifies to use %n rather than \n for a newline.</p>
  
  <p>As per the <a href="https://docs.oracle.com/javase/tutorial/java/data/numberformat.html" rel="noreferrer">Oracle JavaSE Number documentation</a></p>
  
  <blockquote>
    <p>A new line character appropriate to the platform running the application. You should always use %n, rather than \n.</p>
  </blockquote>
  
  <p>What is the prominent difference between both if any?. </p>