This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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);
}}
 
Consider Paul's rocket mass heater.
 
subject: chapter3 KB (passing primitive variables)
 
Similar Threads
Garbage Collection Problem Explain Pls Dan Chisholm single topic
Passing Object Reference Variables
can anyone explain this?
argument question
uestion on pass byobject and pass by value.