title: Upgrade/install Java version in a Mac
body: <p>I am on a Mac. My current <code>Java</code> version is  "1.6.0_65". Therefore i want to upgrade it to the latest. I typed the following command on my Mac <code>terminal</code>. </p>
  
  <pre><code>sudo apt-get install oracle-java7-installer
  </code></pre>
  
  <p>The error i got is <code>sudo: apt-get: command not found</code>. Then i tried using <code>yum</code> command instead. and the error i got it <code>sudo: yum: command not found</code>.</p>
  
  <p>1.) Is there a way to install <code>apt-get</code> and <code>yum</code> on Mac, if so how?</p>
  
  <p>2.) What is the command to upgrade Java using a Mac?</p>