File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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);
}}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: chapter3 KB (passing primitive variables)