dcsimg
what will be the output and why?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Aarthi_Jairam
Posted On:   Friday, October 10, 2003 07:48 AM



			

class Inc
{
public static void main(String [] a)
{
Inc inc=new Inc();
int i=0;
inc.fun(i);
i=i++;
System.out.println(i);
}
void fun(int i)
{
i++;
}



Re: what will be the output and why?

Posted By:   Anonymous  
Posted On:   Friday, October 10, 2003 11:16 PM

Have you tried? What was the result? What do *you* think happened?
About | Sitemap | Contact