i have seen a prog like this
public class Addition{
public int doAddition(int a,int b){
int c=a+b;
return c;
}
public static void main(
String[] args){
System.out.println(new Addition().doAddition(1,2);
}
}
suppose there is some other class in another package imports this class and calls doAdddition by passing 2 integer variables say 6,4 and gets 10. what about this line- System.out.println(new Addition().doAddition(1,2);. do it always passes (1,2) to doAddition method..