title: What is the output of the following line of code?
body: <p>What is the output of the following lines of code? (JAVA)</p>
  
  <pre><code>int nums[] = {1,2,3,4,5,6};
  
  System.out.println(nums[1]+nums[3]);
  </code></pre>
  
  <p>I'm doing a practise revision sheet but I can't seem to workout the answer to this. EITHER - 7, 4, 5 OR 6. </p>
  
  <p>ALSO when i try to put it into my Eclipse, it doesn't work.</p>