Difference between "public" and "void" : <p>I am learning java programming from <a href="http://courses.caveofprogramming.com/courses/java-for-complete-beginners/lectures/38443" rel="nofollow">http://courses.caveofprogramming.com/courses/java-for-complete-beginners/lectures/38443</a></p>

<p>This guy, till now have been using the <code>void</code> keyword before declaring any method but once he reached to the <em>passing parameters in methods</em> part, he starting using the <code>public</code> keyword instead of the void keyword. Why did he start using <code>public</code> instead of <code>void</code>?</p>

<p>I have a vague understanding of both the keyword but it would be better if you could explain these keywords to me too.</p>
