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
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)
 
Similar Threads
argument question
uestion on pass byobject and pass by value.
Garbage Collection Problem Explain Pls Dan Chisholm single topic
can anyone explain this?
Passing Object Reference Variables