Siva Pavan Kumar

Greenhorn
+ Follow
since Jun 14, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Siva Pavan Kumar

Hi Chandra,

Thanks for your warm welcome....

But how can it remember the values of i as 5, while passing the i value as 6 to the method call??....

Can you clarify on this....

Thanks,
Siva.
Hi Everybody,

I have newly joined the team. I am not clear of the execution of the following code, can any one of you help me out,

here is the code,

class C
{
static int f1(int i)
{
System.out.print(i + ",");
return 3;
}
public static void main (String[] args)
{
int i = 5;
i = i++ + f1(i);
System.out.print(i);
}
}

The output is 6,8 astonishingly...

Thanks in Advance,
Siva.