title: Display source program as output while execution?
body: <p>I have been asked in a interview that 
  how to display a <strong>entire source program</strong> as <strong>output</strong> when the same program is in execution</p>
  
  <ul>
  <li>Generally we use <code>File-handling</code> concept for this , is there any other way to achieve this task </li>
  </ul>
  
  <p>Any suggestion for this ?</p>
  
  <p><strong>Updated Solution :</strong>
     As i researched something i got a solution , we can do it by <a href="http://en.wikipedia.org/wiki/Quine_%28computing%29" rel="nofollow">Quine</a></p>
  
  <ul>
  <li>It executes code and prints the source program , but we need to give entire program as input <code>String array</code>..as @Basile commented below</li>
  </ul>