what is the difference between additions?
<p>I'm starting to learn Java..I am very excited.<br/>
First code is not return result as my want..</p>

<pre><code>import java.util.Scanner;
public class Yusuf
{
    public static void main(String args[])
    {
        Scanner text = new Scanner(System.in);
        int a,b;
        System.out.print("Enter first number:");
        a = text.nextInt();
        System.out.print("Enter second number:");
        b = text.nextInt();
        System.out.print("a + b = " + a+b);
    }
}
</code></pre>

<p>This code's result is "a + b = 1525" (if a=15 and b=25 (i am giving random number for example)) <br/></p>

<p>Why above code isn't work such as this code:</p>

<pre><code>import java.util.Scanner;
public class Yusuf
{
    public static void main(String args[])
    {
        Scanner text = new Scanner(System.in);
        int a,b,c;
        System.out.print("Enter first number:");
        a = text.nextInt();
        System.out.print("Enter second number:");
        b = text.nextInt();
        c = a+b;
        System.out.print("a + b = " + c);
    }
}
</code></pre>

<p>This code returning 40 for same numbers..
What is the difference? Absolutely i need to use different variable?</p>
