Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

chapter3 KB (passing primitive variables)

 
Syed Naimathullah
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Report post to moderator
How program flow is going can any body explain me in detail .



class ReferenceTest
{
public static void main(String[] args)
{
int a=1;
ReferenceTest rt=new ReferenceTest();
System.out.println("Before modify() a="+a);
rt.modify(a);
System.out.println("After modify() a="+a);
}
void modify(int number)
{
number=number+1;
System.out.println("number="+number);
}}
 
    Bookmark Topic Watch Topic
  • New Topic