aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes chapter3 KB (passing primitive variables) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic
Author

chapter3 KB (passing primitive variables)

Syed Naimathullah
Greenhorn

Joined: Feb 18, 2007
Posts: 17
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);
}}
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: chapter3 KB (passing primitive variables)