title: Difference between % (modulus) and / (divided) in Java?
body: <p>Yesterday I had to face an interview, in that interview they asked me a  question like: Tell me the difference between % and / ?<br />
  I know the result what they gave, but I wasn't able to explain it theoretically. Will you please give me any body who can explain it theoretically, I have also done a program on this:</p>
  <pre><code>class FindDifference 
  {
      public static void main(String[] args) 
      {
          int num1=12;
          int num2=3;
          int modulus=num1%num2;
          int divide=num1/num2;
          System.out.println(&quot;modulus :&quot;+modulus);
          System.out.println(&quot;division :&quot;+divide);
      }
  }
  </code></pre>
  <p>and my result is:</p>
  <pre><code>modulus :0    
  division :4    
  </code></pre>
  <p>But how can I give the theoretical explanation between them? Will you please help me?</p>